home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 1997 January / Macworld (1997-01).dmg / Shareware World / Info / CSMP Digest / CSMP Digest Vol 4 No 7.text < prev    next >
Text File  |  1996-10-07  |  205KB  |  5,925 lines

  1. C.S.M.P. Digest             Mon, 07 Oct 96       Volume 4 : Issue 7
  2.  
  3. Today's Topics:
  4.  
  5.         **** ANSI C Array HELP ****
  6.         ANNOUNCE: AGMenu 1.0 final release
  7.         Apple Events on a PPC
  8.         Application Merge
  9.         Baud rate constants for serial driver
  10.         Extended on PPC???
  11.         Folder selection madness
  12.         Game: Feathers and Space? First Mac Game?
  13.         Get a font list
  14.         GetKeys() KeyMap Structure (0-1) Re: How to decode GetKeys(KeyMap)?
  15.         Help on JDBC
  16.         Help with polygon graphics in games
  17.         How to determine volume-directory of current application?
  18.         Launching a remote app with AppleScript?
  19.         Learn C++ on the Mac with MacZoop- new website
  20.         MacMkLinux Freezes
  21.         Macsbug questions
  22.         Opening Control Panel
  23.         Pascal compiler
  24.         Picture Help!
  25.         Q: Inside Macintosh CD-ROM
  26.         QuickDrawGX's future...
  27.         REQ: Pascal source on line??
  28.         Really Basic Question
  29.         Scripting Addition to check for PowerMac vs. 68K
  30.         Shareware Assembler
  31.         Smalltalk for CW?
  32.         Symantec, Mac, v8.x help requested
  33.         System 7.5.5 fixes
  34.         Think C 5.0.4...can't load resources! HELP!
  35.         Time Manager Woes...
  36.         Using QuickDraw.
  37.         Where are the programmers switches on the new PCI Macs?
  38.         [ANN] CW 10 is in the mail
  39.         [ANN] OO Design Tool for Macintosh
  40.         [Q] Creating fog in QD3D
  41.         [Q] Reading text from anywhere in a file (in C or C++)
  42.         [Q] ShutDwnPower mystery?
  43.         [Q] Smooth text scrolling in a Rect
  44.         [Q] Sound Manager 3.2 docs needed
  45.         [Q]: System Extension Trigger
  46.         help with malloc() needed
  47.         mac 512k ed system HELP!!!
  48.  
  49.  
  50.  
  51. The Comp.Sys.Mac.Programmer Digest is moderated by Mark Aiken
  52. (marka@ee.mcgill.ca).
  53.  
  54. The digest is a collection of article threads from the internet
  55. newsgroups comp.sys.mac.programmer.help, csmp.tools, csmp.misc and
  56. csmp.games. It is designed for people who read news semi-regularly and
  57. want an archive of the discussions.  If you don't know what a
  58. newsgroup is, you probably don't have access to it. Ask your systems
  59. administrator(s) for details. If you don't have access to news, you
  60. may still be able to post messages to the group by using a mail server
  61. like anon.penet.fi (mail help@anon.penet.fi for more information).
  62.  
  63. Each issue of the digest contains one or more sets of articles (called
  64. threads), with each set corresponding to a 'discussion' of a particular
  65. subject.  The articles are not edited; all articles included in this digest
  66. are in their original posted form (as received by our news server at
  67. ee.mcgill.ca).  Article threads are not added to the digest until the last
  68. article added to the thread is at least two weeks old (this is to ensure that
  69. the thread is dead before adding it to the digest).  Article threads that
  70. consist of only one message are generally not included in the digest.
  71.  
  72. The digests can be obtained by email, ftp or through the World Wide Web.
  73.  
  74. If you want to receive the digest by mail, send email to 
  75. majordomo@ee.mcgill.ca with no subject and one of the following commands
  76. as body:
  77.  
  78.     help                        Sends you a summary of commands
  79.     subscribe csmp                      Adds you to the mailing list
  80.     unsubscribe csmp                    Removes you from the list
  81.  
  82. Once you have subscribed, you will automatically receive each new
  83. issue as it is created.
  84.  
  85. Back issues are available by ftp from Info-Mac mirror sites in the
  86. per/csmp subdirectory, e.g.
  87.  
  88.   ftp://sumex-aim.stanford.edu/info-mac/per/csmp/
  89.  
  90. The contents of all back issues can be searched by accessing the
  91. following URL, courtesy of Andrew Barry (ajbarry@ozemail.com.au):
  92.  
  93.     http://marvin.stattech.com.au/search.html
  94.  
  95. They can also be searched through the following URLs, thanks to
  96. Tim Tuck (Tim.Tuck@sensei.com.au):
  97.  
  98.     http://wais.sensei.com.au/searchform.html
  99.     wais://wais.sensei.com.au:210/csmp?
  100.  
  101. -------------------------------------------------------
  102.  
  103. >From cwasko@snet.net (Chris Waskowich)
  104. Subject: **** ANSI C Array HELP ****
  105. Date: Thu, 19 Sep 1996 15:17:29 -0400
  106. Organization: University of Connecticut
  107.  
  108. I am working on a program that passes arrays.  I need these arrays to be
  109. updated in one function and then the results printed out in another, IAW:
  110.  
  111.  
  112. void function_a(void)     
  113.    {                      
  114.    float *array[20];      // I NEED this to be a pointer 
  115.    int i
  116.    
  117.    for(i=1;i<=10;i++)          // I need to initialize the data in the array
  118.       ??? array[i]=i;
  119.                           
  120.    function_b( ??? array);     // Then I need this to pass an address, How????
  121.                           
  122.    for(i=1;1<=20;1++)
  123.       printf("%10.4f",array[i]);   
  124.    }
  125.  
  126.  
  127. If anyone can help, I would greatly appreciate it (e-mail me directly
  128. too).  I have done this before, but I can't remember it, and I don't have
  129. my old code available.
  130.  
  131.  
  132.  
  133. Thanks,
  134.  
  135. Chris Waskowich
  136. cwasko@snet.net
  137.  
  138. +++++++++++++++++++++++++++
  139.  
  140. >From mh@primenet.com (Mark Hartman)
  141. Date: 20 Sep 1996 07:28:02 -0700
  142. Organization: Mark Hartman Computer Solutions
  143.  
  144. In article <cwasko-1909961517290001@mystic.ucc.uconn.edu>, cwasko@snet.net
  145. (Chris Waskowich) wrote:
  146.  
  147. >I am working on a program that passes arrays.  I need these arrays to be
  148. >updated in one function and then the results printed out in another, IAW:
  149.  
  150. Well, there are several problems with how you're doing it here.
  151.  
  152. >void function_a(void)     
  153. >   {                      
  154. >   float *array[20];      // I NEED this to be a pointer 
  155.  
  156. Maybe so, but you also need something for the pointers to point TO.  Before
  157. you can initialize what is being pointed at, you really need to point to
  158. something.
  159.  
  160. >   int i;
  161. >   
  162. >   for(i=1;i<=10;i++)          // I need to initialize the data in the array
  163. >      ??? array[i]=i;
  164.  
  165. Assuming that you had set the pointer in question to the address of a float,
  166. here you'd use
  167.          *array[i] = i;
  168.  
  169. >                          
  170. >   function_b( ??? array);     // Then I need this to pass an address, How????
  171.  
  172.          function_b(&array);     // Will pass the address of the array
  173. >                          
  174. >   for(i=1;1<=20;1++)
  175. >      printf("%10.4f",array[i]);   
  176.  
  177. Why would you want to print out the addresses in float format?  Use
  178.       printf("%10.4f", *array[i]);  // Prints the values, not the addresses
  179.  
  180. >   }
  181. >
  182. >Thanks,
  183.  
  184. You're welcome.
  185. ========================================================================
  186.  Mark Hartman Computer Solutions - specializing in all things Macintosh
  187.     C  C++   4th Dimension   Networking   System design/architecture
  188.  tel +1(714)758.0640 -+- fax +1(714)999.5030 -+- e-mail mh@primenet.com
  189. ========================================================================
  190. Wintel is to Mac as an Iraqi T-72 tank is to an M1A1 tank.  --Tom Clancy
  191.  
  192. +++++++++++++++++++++++++++
  193.  
  194. >From howlett@netcom.com (Scott Howlett)
  195. Date: Fri, 20 Sep 1996 16:07:00 GMT
  196. Organization: NETCOM On-line Communication Services (408 261-4700 guest)
  197.  
  198. mh@primenet.com (Mark Hartman) wrote:
  199.  
  200. > In article <cwasko-1909961517290001@mystic.ucc.uconn.edu>, cwasko@snet.net
  201. > (Chris Waskowich) wrote:
  202. > >I am working on a program that passes arrays.  I need these arrays to be
  203. > >updated in one function and then the results printed out in another, IAW:
  204. > Well, there are several problems with how you're doing it here.
  205. > >void function_a(void)     
  206. > >   {                      
  207. > >   float *array[20];      // I NEED this to be a pointer 
  208. > Maybe so, but you also need something for the pointers to point TO.  Before
  209. > you can initialize what is being pointed at, you really need to point to
  210. > something.
  211.  
  212. I think you missed something.
  213.  
  214. The whole problem with the original poster's code is that the above
  215. declaration should simply be:
  216.  
  217. float array[20];
  218.  
  219. With that change, the rest of the code should be fine.
  220.  
  221. - Scott
  222.  
  223. -- 
  224. Scott Howlett, howlett@netcom.com
  225. "If trees could scream, would we be so cavalier about cutting them 
  226. down? We might, if they screamed all the time, for no good reason."
  227.  
  228. +++++++++++++++++++++++++++
  229.  
  230. >From charlesc@nortel.ca (Chuck Charbonneau)
  231. Date: 20 Sep 1996 14:09:50 GMT
  232. Organization: Northen Telecom Limited, Ottawa
  233.  
  234. In article <cwasko-1909961517290001@mystic.ucc.uconn.edu>
  235. cwasko@snet.net (Chris Waskowich) writes:
  236.  
  237. > void function_a(void)     
  238. >    {                      
  239. >    float *array[20];      // I NEED this to be a pointer 
  240. >    int i
  241. >    
  242. >    for(i=1;i<=10;i++)          // I need to initialize the data in the array
  243. >       ??? array[i]=i;
  244. >                           
  245. >    function_b( ??? array);     // Then I need this to pass an address, How????
  246. >                           
  247. >    for(i=1;1<=20;1++)
  248. >       printf("%10.4f",array[i]);   
  249. >    }
  250.  
  251. Chris:
  252.  
  253. Try this:
  254. void function_a(void)     
  255. {                      
  256.     float array[20];      <- the array name itself is a pointer
  257.     int i;
  258.  
  259.     for(i=1;i<=10;i++)      <- NOTE: Your array init should start at 0
  260. !!!!    
  261.        array[i]=i; <- no explicit pointer dereference needed here (i.e.
  262. no '*' needed; code is ok like this)    
  263.                                                     
  264.     function_b(array);     <- just pass the array name; your function_b
  265. should be: function_b(float* array)       
  266.                                               or function_b(float[]
  267. array), I can't remember which is better
  268.                            
  269.     for(i=1;1<=20;1++)      <- AGAIN: start at 0 !!!
  270.        printf("%10.4f",array[i]);   
  271. }
  272.  
  273. I just tried this using Symantec C++ v 7.0.4 compiler on the Mac, and
  274. it worked a-o.k.
  275.  
  276. I seem to remember some compilers choking on passing arrays of float in
  277. this manner, but I can't be sure. Memory's not what it used to be.
  278.  
  279. Hope this helps,
  280. -Chuck.
  281. - --------------
  282. C.J. Charbonneau
  283. C++/GUI dev
  284. Northern Telecom, Ottawa
  285. Internet: charlesc@nortel.ca
  286. Personal: carb@cyberus.ca
  287.  
  288.  
  289.  
  290.  
  291. +++++++++++++++++++++++++++
  292.  
  293. >From gregj@europa.com (Greg Jorgensen)
  294. Date: Sun, 22 Sep 1996 00:04:34 -0800
  295. Organization: Europa Communications, Inc, Portland Oregon USA
  296.  
  297. In article <cwasko-1909961517290001@mystic.ucc.uconn.edu>, cwasko@snet.net
  298. (Chris Waskowich) wrote:
  299.  
  300. >I am working on a program that passes arrays.  I need these arrays to be
  301. >updated in one function and then the results printed out in another, IAW:
  302. >
  303. >
  304. >void function_a(void)     
  305. >   {                      
  306. >   float *array[20];      // I NEED this to be a pointer 
  307. >   int i
  308. >   
  309. >   for(i=1;i<=10;i++)          // I need to initialize the data in the array
  310. >      ??? array[i]=i;
  311. >                          
  312. >   function_b( ??? array);     // Then I need this to pass an address, How????
  313. >                          
  314. >   for(i=1;1<=20;1++)
  315. >      printf("%10.4f",array[i]);   
  316. >   }
  317.  
  318. Here's one way to do it. In C/C++ the name of an array is effectively a
  319. pointer to the first element of the array. You don't need to do anything
  320. tricky with the declarations.
  321.  
  322.  
  323. const int kArraySize = 20;
  324.  
  325. void function_a(void)
  326. {
  327.     float array[kArraySize];
  328.  
  329.     // initialize the array
  330.  
  331.     for ( int i = 0; i < kArraySize; ++i )
  332.         array[i] = i;
  333.  
  334.     function_b(array, kArraySize);
  335.  
  336.     for ( int i = 0; i < kArraySize; ++i )
  337.         printf("%10.4f\n", array[i]);
  338. }
  339.  
  340. void function_b(float *array, int n)
  341. {
  342.     for ( int i = 0; i < n; ++i )
  343.         array[i] = 2.0 * array[i];
  344. }
  345.  
  346. -- 
  347. Greg Jorgensen - Portland, Oregon, USA - gregj@europa.com
  348.  
  349. "I tell you, we are here on Earth to fart around, and don't let anyone tell you any different." -- Kurt Vonnegut
  350.  
  351. ---------------------------
  352.  
  353. >From tree@apple.com (Tom Emerson)
  354. Subject: ANNOUNCE: AGMenu 1.0 final release
  355. Date: Mon, 23 Sep 1996 15:34:33 -0400
  356. Organization: Apple Computer, Inc.
  357.  
  358. This message announces the availability of AGMenu 1.0.
  359.  
  360. AGMenu is a small library which manages the Guide (or Help, or Balloon
  361. Help, or Question) Menu for you, letting you stash your application's
  362. Apple guides in their own folder, out of the way of inquisitive users.
  363. AGMenu places your guides in the correct locations in the menu, and uses
  364. the same criteria that Apple Guide 2.0 uses when decided which guides
  365. should be included. Integrating AGMenu into your application is trivial
  366. and can often be done in less than an hour.
  367.  
  368. AGMenu's capabilities are superseded by Apple Guide 2.1, which adds the
  369. ability to search an alternate directory for an application's guide files
  370. without changing your application's code. AGMenu detects when Apple Guide
  371. 2.1 (or later) is installed and does nothing, letting the System take care
  372. of things. The advantage of AGMenu is that it works regardless of which
  373. version of Apple Guide you're using.
  374.  
  375. AGMenu will work with all of the Macintosh C, C++, and Pascal development
  376. environments, and includes information on using it with PowerPlant and the
  377. THINK Class Library. It also works with the Mercutio MDEF.
  378.  
  379. The release notes for AGMenu can be found on the World Wide Web at
  380.  
  381.     <http://www.tiac.net/users/tree/AGMenu.html>
  382.  
  383. You can obtain AGMenu via anonymous ftp from
  384.  
  385.     <ftp://ftp.cambridge.apple.com/pub/users/tree/AGMenu1.0.hqx>
  386.  
  387. It has also been submitted to macgifts.
  388.  
  389. NB: AGMenu is not an Apple supported product.
  390.  
  391. You may use AGMenu freely in your programs, all I ask is that you let me
  392. know that you are using it so I can keep you informed of changes and
  393. enhancements. If you feel like giving credit in an about box or sending me
  394. a copy of your software, that would be super too.
  395.  
  396. Changes from 1.0d3:
  397.  
  398. - Removed AGMenuKey and AGMenuSelect from the API. AGMenu now patches
  399.   MenuKey and MenuSelect, allowing it to be used without modifying user
  400.   code. 
  401.  
  402. - Ignores new Mac OS 8 guide file types.
  403.  
  404. - Fixed serious lossage in the Pascal interface file (and actually
  405.   tested it!)
  406.  
  407. - When opening a guide file AGMenu will wait for the application portion
  408.   of Apple Guide to start (if necessary) before calling AGOpen. This works
  409.   around a problem where Apple Guide doesn't wait long enough for the
  410.   application portion to start if it starts it up. 
  411.  
  412. Enjoy.
  413.  
  414.     -tre
  415.  
  416. --
  417. Tom Emerson                                                 Cambridge R&D
  418. Senior Software Engineer                             Apple Computer, Inc.
  419. <mailto:tree@apple.com>                  <http://www.tiac.net/users/tree>
  420.  
  421. ---------------------------
  422.  
  423. >From bolen@scws30.harvard.edu (David Bolen)
  424. Subject: Apple Events on a PPC
  425. Date: 20 Sep 1996 04:56:56 GMT
  426. Organization: Harvard University, Cambridge, Massachusetts
  427.  
  428. is there anything special that has to be done to code apple 
  429. events in pascal on the PowerPC that you wouldn't need to do
  430. on the 68k?  I've used the UPPs and my apple events still don't
  431. work.  Thanks
  432.  
  433. Britt
  434.  
  435. --
  436. - ---------------
  437. Britt Bolen <bolen@fas.harvard.edu>
  438. http://www.fas.harvard.edu/~bolen/index.html
  439.  
  440.  
  441. +++++++++++++++++++++++++++
  442.  
  443. >From jonpugh@netcom.com (Jon Pugh)
  444. Date: Sun, 22 Sep 1996 05:55:18 GMT
  445. Organization: Will hack for food
  446.  
  447. David Bolen (bolen@scws30.harvard.edu) wrote:
  448. > is there anything special that has to be done to code apple 
  449. > events in pascal on the PowerPC that you wouldn't need to do
  450. > on the 68k?  I've used the UPPs and my apple events still don't
  451. > work.  Thanks
  452.  
  453. You need to use UPPs and declare everything correctly.
  454.  
  455. Of course, a bit more descriptive troubleshooting would help.
  456.  
  457. "still don't work" is insufficient information to go on.
  458.  
  459. Jon
  460.  
  461.  
  462.  
  463. +++++++++++++++++++++++++++
  464.  
  465. >From jonpugh@netcom.com (Jon Pugh)
  466. Date: Sun, 22 Sep 1996 05:55:18 GMT
  467. Organization: Will hack for food
  468.  
  469. Reposting article removed by rogue canceller.
  470.  
  471. David Bolen (bolen@scws30.harvard.edu) wrote:
  472. > is there anything special that has to be done to code apple 
  473. > events in pascal on the PowerPC that you wouldn't need to do
  474. > on the 68k?  I've used the UPPs and my apple events still don't
  475. > work.  Thanks
  476.  
  477. You need to use UPPs and declare everything correctly.
  478.  
  479. Of course, a bit more descriptive troubleshooting would help.
  480.  
  481. "still don't work" is insufficient information to go on.
  482.  
  483. Jon
  484.  
  485.  
  486.  
  487. ---------------------------
  488.  
  489. >From lottsim@aol.com (LOTTSIM)
  490. Subject: Application Merge
  491. Date: 22 Sep 1996 12:10:00 -0400
  492. Organization: America Online, Inc. (1-800-827-6364)
  493.  
  494. This sounds like an odd, unorthodox question, and yes, it probably is.
  495.  
  496. I want to "merge" an application with another (or in my case, a control
  497. panel).  My question is, can I "launch" this application from within the
  498. main one (or control panel)?
  499.  
  500. I know how to write/open/use external code resources, and find it an
  501. invaluable tool (since I might use a certain bit of code in ALL my
  502. programs, I can make the code an external resource).
  503.  
  504. I've already designed the code to copy *all* the resources over (since it
  505. is a control panel, I don't run in to any ID conflicts...except for
  506. version info, which can be removed anyway) from the target application to
  507. my control panel.  Would I simply open the 'CODE' resource number 0?  Or
  508. is it more complicated than that?
  509.  
  510. Thanks,
  511. Alex Rampell
  512.  
  513. +++++++++++++++++++++++++++
  514.  
  515. >From Horst Pralow <h_pralow@overnet.de>
  516. Date: Mon, 23 Sep 1996 14:34:10 +0200
  517. Organization: overnet
  518.  
  519. LOTTSIM wrote:
  520. > This sounds like an odd, unorthodox question, and yes, it probably is.
  521. > I want to "merge" an application with another (or in my case, a control
  522. > panel).  My question is, can I "launch" this application from within the
  523. > main one (or control panel)?
  524. > ...
  525. > I've already designed the code to copy *all* the resources over (since it
  526. > is a control panel, I don't run in to any ID conflicts...except for
  527. > version info, which can be removed anyway) from the target application to
  528. > my control panel.  Would I simply open the 'CODE' resource number 0?  Or
  529. > is it more complicated than that?
  530. > Thanks,
  531. > Alex Rampell
  532.  
  533. To launch an embedded application from within a control panel all you
  534. have to do
  535. is find out the FSSpec of your control panel and stuff this information
  536. into a
  537. LaunchParamBlock and then call the LaunchApplication() function.
  538. I have done this and it works like a charm, but you might perhaps supply
  539. some
  540. additional information to LaunchApplication(). Since I'm writing this
  541. off amy head
  542. without access to my sources, I'm not sure about the exact information
  543. needed by
  544. LaunchApplication(), but the above is it in a nutshell.
  545.  
  546. To have a second application inside another one IMO would always yield a
  547. resource ID
  548. conflict at least for classic (non CFM) 68k apps since both would
  549. require at the very
  550. least a 'CODE' 0 resource.
  551.  
  552. HTH
  553. Horst
  554.  
  555. +++++++++++++++++++++++++++
  556.  
  557. >From lottsim@aol.com (LOTTSIM)
  558. Date: 23 Sep 1996 18:27:59 -0400
  559. Organization: America Online, Inc. (1-800-827-6364)
  560.  
  561. <<<<<<<<<
  562. To launch an embedded application from within a control panel all you
  563. have to do
  564. is find out the FSSpec of your control panel and stuff this information
  565. into a
  566. LaunchParamBlock and then call the LaunchApplication() function.
  567. I have done this and it works like a charm, but you might perhaps supply
  568. some
  569. additional information to LaunchApplication(). Since I'm writing this
  570. off amy head
  571. without access to my sources, I'm not sure about the exact information
  572. needed by
  573. LaunchApplication(), but the above is it in a nutshell.
  574. >>>>>>>
  575.  
  576. I'm not sure if you were referring to sample code ("but the above is it in
  577. a nutshell")
  578.  
  579. What I'm going to do, more specifically, is launch this from an INIT. 
  580. This appears to be a daunting task, so before I embark upon it, I'd like
  581. to know a few things.
  582.  
  583. I'm not really sure how to use LaunchApplication to open an embedded
  584. 'CODE' resource, but I do know how to create an FSSpec to one's self. 
  585. This is what I do upon startup; when the "first time" code (not the patch)
  586. runs, it creates an FSSpec to itself that is stored in a global that the
  587. patch accesses.
  588.  
  589. So I guess I want to UseResFile (from the INIT) to the FSSpec that I've
  590. created, and then Launch the CODE resource (I'm not completely sure how to
  591. do this...there won't be any resource conflicts, as this is a cdev/INIT).
  592.  
  593. The problem (that I've thought about) is in the following:
  594. Since the INIT is in the System Heap, I'll be OK saying UseResFile, but
  595. then I have to switch it back, right?  However, as this application is
  596. completely independant from my INIT, I won't know when this happens,
  597. unless I patch some more traps.  Is there any way around this problem?
  598.  
  599. Will I be calling LaunchApplication, or just opening the 'CODE' resource?
  600.  
  601. This is a complicated question (or at least I think so...).  Any help
  602. would be greatly appreciated.
  603.  
  604. Thanks,
  605. Alex Rampell
  606.  
  607. ---------------------------
  608.  
  609. >From bilewicz@helf4.physik.fu-berlin.de (Roger Bilewicz)
  610. Subject: Baud rate constants for serial driver
  611. Date: 20 Sep 96 10:26:48 GMT
  612. Organization: Freie Universitaet Berlin
  613.  
  614. Hi all,
  615.  
  616. examining the constants which help to determine the baudrate of the
  617. serial driver, one finds that 
  618.    value_to_pass := (115200 div baudrate) - 2 
  619. gives the value for all baudrates.
  620.  
  621. But I wonder why there is an offset of 2 ? Does anybody know the reason? 
  622.  
  623. Thanks,
  624. Roger
  625.  
  626.  
  627. +++++++++++++++++++++++++++
  628.  
  629. >From harun@village.village.de (Harun Scheutzow)
  630. Date: Sat, 21 Sep 1996 19:10:54 GMT
  631. Organization: Village Tronic Marketing GmbH
  632.  
  633. The reason for the offset 2 is the SCC. The SCC requires this
  634. values.
  635.  
  636. Regards, HS
  637. < Opinions are my own >
  638.  
  639.  
  640. +++++++++++++++++++++++++++
  641.  
  642. >From hep09515@rrzs42 (Peter Heitzer)
  643. Date: 23 Sep 1996 08:09:35 GMT
  644. Organization: University of Regensburg, Germany
  645.  
  646. Roger Bilewicz (bilewicz@helf4.physik.fu-berlin.de) wrote:
  647. :    value_to_pass := (115200 div baudrate) - 2 
  648. : gives the value for all baudrates.
  649.  
  650. : But I wonder why there is an offset of 2 ? Does anybody know the reason? 
  651. AFAIK thats how the Zilog 8530 chip wants the value. If you want to use
  652. the "normal" baudrates, eg. 1200, 2400, .. you should use the predefined
  653. constants as described in Inside Macintosh .
  654. Hope that helps,
  655. Peter
  656.  
  657.  
  658. --
  659. Dipl.-Inform. Peter Heitzer
  660. phone +49 941 943 4850, fax +49 941 943 4857
  661. mail Peter.Heitzer@rz.uni-regensburg.de
  662.  
  663. +++++++++++++++++++++++++++
  664.  
  665. >From harun@village.village.de (Harun Scheutzow)
  666. Date: Sat, 21 Sep 1996 19:10:54 GMT
  667. Organization: Village Tronic Marketing GmbH
  668.  
  669. Reposting article removed by rogue canceller.
  670.  
  671. The reason for the offset 2 is the SCC. The SCC requires this
  672. values.
  673.  
  674. Regards, HS
  675. < Opinions are my own >
  676.  
  677.  
  678. +++++++++++++++++++++++++++
  679.  
  680. >From harun@village.village.de (Harun Scheutzow)
  681. Date: Sat, 21 Sep 1996 19:10:54 GMT
  682. Organization: Village Tronic Marketing GmbH
  683.  
  684. Reposting article removed by rogue canceller.
  685.  
  686. The reason for the offset 2 is the SCC. The SCC requires this
  687. values.
  688.  
  689. Regards, HS
  690. < Opinions are my own >
  691.  
  692.  
  693. ---------------------------
  694.  
  695. >From hawkfish@punchdeck.com (Richard Wesley)
  696. Subject: Extended on PPC???
  697. Date: Mon, 23 Sep 1996 10:25:13 -0700
  698. Organization: Electric Fish, Inc.
  699.  
  700. In Types.h and various other places I find the statement that "exteneded
  701. is not defined for PPC".  How the hell does one use ::ExtendedToString if
  702. there is no way to create an extended on a PPC?
  703.  
  704.  
  705. - rmgw
  706.  
  707. http://www.halcyon.com/hawkfish/Index.html
  708.  
  709. - --------------------------------------------------------------------------
  710. Richard Wesley             | "I don't know about your dreams
  711. hawkfish@punchdeck.com     |  But mine are sort of hackneyed"
  712. hawkfish@electricfish.com  |   - Laurie Anderson, "Talk Normal"
  713. - --------------------------------------------------------------------------
  714.  
  715. +++++++++++++++++++++++++++
  716.  
  717. >From hawkfish@punchdeck.com (Richard Wesley)
  718. Date: Mon, 23 Sep 1996 16:34:08 -0700
  719. Organization: Electric Fish, Inc.
  720.  
  721. In article <hawkfish-2309961025130001@blv-pm12-ip1.halcyon.com>,
  722. hawkfish@punchdeck.com (Richard Wesley) wrote:
  723.  
  724. >In Types.h and various other places I find the statement that "exteneded
  725. >is not defined for PPC".  How the hell does one use ::ExtendedToString if
  726. >there is no way to create an extended on a PPC?
  727.  
  728. Never, mind, I dound it in fp.h.  Why can't MW just do the right thing...
  729.  
  730.  
  731. - rmgw
  732.  
  733. http://www.halcyon.com/hawkfish/Index.html
  734.  
  735. - --------------------------------------------------------------------------
  736. Richard Wesley             | "I don't know about your dreams
  737. hawkfish@punchdeck.com     |  But mine are sort of hackneyed"
  738. hawkfish@electricfish.com  |   - Laurie Anderson, "Talk Normal"
  739. - --------------------------------------------------------------------------
  740.  
  741. +++++++++++++++++++++++++++
  742.  
  743. >From hawkfish@punchdeck.com (Richard Wesley)
  744. Date: Mon, 23 Sep 1996 16:34:08 -0700
  745. Organization: Electric Fish, Inc.
  746.  
  747. In article <hawkfish-2309961025130001@blv-pm12-ip1.halcyon.com>,
  748. hawkfish@punchdeck.com (Richard Wesley) wrote:
  749.  
  750. >In Types.h and various other places I find the statement that "exteneded
  751. >is not defined for PPC".  How the hell does one use ::ExtendedToString if
  752. >there is no way to create an extended on a PPC?
  753.  
  754. Never, mind, I dound it in fp.h.  Why can't MW just do the right thing...
  755.  
  756.  
  757. - rmgw
  758.  
  759. http://www.halcyon.com/hawkfish/Index.html
  760.  
  761. - --------------------------------------------------------------------------
  762. Richard Wesley             | "I don't know about your dreams
  763. hawkfish@punchdeck.com     |  But mine are sort of hackneyed"
  764. hawkfish@electricfish.com  |   - Laurie Anderson, "Talk Normal"
  765. - --------------------------------------------------------------------------
  766.  
  767. ---------------------------
  768.  
  769. >From hawkfish@punchdeck.com (Richard Wesley)
  770. Subject: Folder selection madness
  771. Date: Wed, 18 Sep 1996 09:27:55 -0700
  772. Organization: Electric Fish, Inc.
  773.  
  774. OK, I have a CustomGetFile modification that allows the user to choose a
  775. folder.   What I cannot seem to do is get it to select a particular folder
  776. when it comes up.  I have no trouble specifying the parent directory in
  777. the usual way, but the damn thing insists on picking some other random
  778. folder as the initial selection.  I have tried specifying the folder
  779. itself as the starting point, which results in some random folder _inside_
  780. the starting point being selected; and I have tried selecting the folder
  781. itself inside its parent directory, which results in the last folder in
  782. the list being selected.
  783.  
  784. Has anyone managed to do this?
  785.  
  786. (N.B.  I have seen the source code from IM-Files and at least two PD
  787. libraries for choosing folders.  None of them address this problem.)
  788.  
  789.  
  790. - rmgw
  791.  
  792. http://www.halcyon.com/hawkfish/Index.html
  793.  
  794. - --------------------------------------------------------------------------
  795. Richard Wesley             | "I don't know about your dreams
  796. hawkfish@punchdeck.com     |  But mine are sort of hackneyed"
  797. hawkfish@electricfish.com  |   - Laurie Anderson, "Talk Normal"
  798. - --------------------------------------------------------------------------
  799.  
  800. +++++++++++++++++++++++++++
  801.  
  802. >From jonpugh@netcom.com (Jon Pugh)
  803. Date: Sun, 22 Sep 1996 05:51:17 GMT
  804. Organization: Will hack for food
  805.  
  806. Richard Wesley (hawkfish@punchdeck.com) wrote:
  807. > OK, I have a CustomGetFile modification that allows the user to choose a
  808. > folder.   What I cannot seem to do is get it to select a particular folder
  809. > when it comes up.  I have no trouble specifying the parent directory in
  810. > the usual way, but the damn thing insists on picking some other random
  811. > folder as the initial selection.  I have tried specifying the folder
  812. > itself as the starting point, which results in some random folder _inside_
  813. > the starting point being selected; and I have tried selecting the folder
  814. > itself inside its parent directory, which results in the last folder in
  815. > the list being selected.
  816.  
  817. > Has anyone managed to do this?
  818.  
  819. > (N.B.  I have seen the source code from IM-Files and at least two PD
  820. > libraries for choosing folders.  None of them address this problem.)
  821.  
  822. The real question is, how are you doing this?  By slamming CurDirStore and
  823. SFSaveDisk before calling CustomGetFile?  That definately won't work because
  824. of General controls and StuperBoomerang.
  825.  
  826. What you need to do is use a filter and slam these on or about your first 
  827. call, which should be after the other guys slam them.
  828.  
  829. Good luck.
  830.  
  831. Jon
  832.  
  833.  
  834. +++++++++++++++++++++++++++
  835.  
  836. >From jonpugh@netcom.com (Jon Pugh)
  837. Date: Sun, 22 Sep 1996 05:51:17 GMT
  838. Organization: Will hack for food
  839.  
  840. Reposting article removed by rogue canceller.
  841.  
  842. Richard Wesley (hawkfish@punchdeck.com) wrote:
  843. > OK, I have a CustomGetFile modification that allows the user to choose a
  844. > folder.   What I cannot seem to do is get it to select a particular folder
  845. > when it comes up.  I have no trouble specifying the parent directory in
  846. > the usual way, but the damn thing insists on picking some other random
  847. > folder as the initial selection.  I have tried specifying the folder
  848. > itself as the starting point, which results in some random folder _inside_
  849. > the starting point being selected; and I have tried selecting the folder
  850. > itself inside its parent directory, which results in the last folder in
  851. > the list being selected.
  852.  
  853. > Has anyone managed to do this?
  854.  
  855. > (N.B.  I have seen the source code from IM-Files and at least two PD
  856. > libraries for choosing folders.  None of them address this problem.)
  857.  
  858. The real question is, how are you doing this?  By slamming CurDirStore and
  859. SFSaveDisk before calling CustomGetFile?  That definately won't work because
  860. of General controls and StuperBoomerang.
  861.  
  862. What you need to do is use a filter and slam these on or about your first 
  863. call, which should be after the other guys slam them.
  864.  
  865. Good luck.
  866.  
  867. Jon
  868.  
  869.  
  870. ---------------------------
  871.  
  872. >From Lapeplau@ucla.edu (Steve Gordon)
  873. Subject: Game: Feathers and Space? First Mac Game?
  874. Date: 23 Sep 1996 20:13:14 GMT
  875. Organization: University of California, Los Angeles
  876.  
  877. Does anyone here remember aone of the earliest Mac games, called Feathers
  878. and Space. Spaceships try to rescue humans from the surface of a planet,
  879. while evil birds try to carry away the humans and crash into the rescue
  880. ships. It was one of the very earliest games for Mac, innovative for its
  881. era. Does anyone have the game (it was copy-protected: "Please insert
  882. original disk....")?
  883.  
  884. What was the first commercially available game for Mac?
  885.  
  886. Steve Gordon
  887.  
  888. +++++++++++++++++++++++++++
  889.  
  890. >From bpettit@aimnet.com (Brad Pettit)
  891. Date: Mon, 23 Sep 1996 18:10:32 -0700
  892. Organization: Apple Computer
  893.  
  894. Hmm, I think MacSlots would be a candidate for first commercial game.
  895. There were quite a few Infocom games early on, too. Also, there was a
  896. pretty good little backgammon game that was shareware or freeware, and it
  897. still works!
  898.  
  899. --Brad (Mac Owner Since April 1984)
  900. - --
  901.  
  902. In article <Lapeplau-2409961214390001@ts19-11.wla.ts.ucla.edu>,
  903. Lapeplau@ucla.edu (Steve Gordon) wrote:
  904.  
  905. > What was the first commercially available game for Mac?
  906. > Steve Gordon
  907.  
  908. +++++++++++++++++++++++++++
  909.  
  910. >From gandreas@mirage.skypoint.com (Glenn Andreas)
  911. Date: 24 Sep 1996 13:34:14 GMT
  912. Organization: GAndreas Software
  913.  
  914. > In article <Lapeplau-2409961214390001@ts19-11.wla.ts.ucla.edu>,
  915. > Lapeplau@ucla.edu (Steve Gordon) wrote:
  916. > > What was the first commercially available game for Mac?
  917. > > 
  918. > > Steve Gordon
  919.  
  920.  
  921. I'd have to vote for that Alice in Wonderland chess game that came from
  922. Apple "Through the Looking Glass" by Steve Capps (you know, the one that
  923. shipped in a box designed to look like a book).  It has a copyright of
  924. 1984.  And I've even got a copy still in shrinkwrap with the "Macintosh
  925. Software" sticker on it
  926.  
  927. -- 
  928. Glenn Andreas                                 Author of Macintosh games:
  929. gandreas@skypoint.com                               Theldrow 2.3
  930. http://www.skypoint.com/members/gandreas            Blobbo 1.0.2
  931. ftp://ftp.skypoint.com/pub/members/g/gandreas
  932. Unsolicited bulk email will be proofread for a US$500/k, min $1000
  933.  
  934. ---------------------------
  935.  
  936. >From Carl B‰ckstrˆm <carl.backstrom@gfk.se>
  937. Subject: Get a font list
  938. Date: Sat, 21 Sep 1996 03:14:39 +0200
  939. Organization: - Young but beautiful -
  940.  
  941. How do I get a list of the currently installed fonts in C code?
  942.  
  943. -Beginner :)
  944.  
  945. +++++++++++++++++++++++++++
  946.  
  947. >From davep@best.com (Dave Polaschek)
  948. Date: Sat, 21 Sep 1996 08:33:07 -0700
  949. Organization: Best Internet Communications
  950.  
  951. Reposting article removed by rogue canceller.
  952.  
  953. In article <32434154.55BE@gfk.se>, carl.backstrom@gfk.se wrote:
  954.  
  955. > How do I get a list of the currently installed fonts in C code?
  956.  
  957. The way to get a nice, sorted list just like you'll see in a font
  958. menu is to call AppendResMenu('FONT') and then read out the menu
  959. item text for each font. If you don't care about sorting, or WANT
  960. the fonts whose names start with % (which are typically synthetic
  961. ATM fonts) just look for all the 'FOND' and 'FONT' resources in
  962. the system heap. You want to make sure to SetResLoad to false so
  963. you don't actually load any fonts by mistake (japanese fonts can
  964. be 5-10M in size, so you don't want to be loading them by accident)
  965.  
  966.  
  967. -DaveP
  968.  
  969. -- 
  970. Dave Polaschek home:davep@best.com work:dpolasch@apple.com
  971.  
  972. ---------------------------
  973.  
  974. >From kcglug@earthlink.net (Keith & Casey Gugliotto)
  975. Subject: - GetKeys() KeyMap Structure (0-1) Re: How to decode GetKeys(KeyMap)?
  976. Date: 19 Sep 1996 20:18:09 GMT
  977. Organization: The Gugliotto's
  978.  
  979. In article <3240105A.43CF@helix.mgh.harvard.edu>, Erik Sobel
  980. <sobel@helix.mgh.harvard.edu> wrote:
  981.  
  982. >What is a quick way to get the character value from the GetKeys(KeyMap)
  983. >command?  Inside Mac says that KeyMap is a packed array of bits (Boolean
  984. >KeyMap[127]) so that letter J == key# 38 makes  KeyMap[37]==1).  
  985. >
  986. >In CodeWarrior the KeyMap is an array of UInt32 (UInt32 KeyMap[4]) where
  987. >a UInt32 is a 32bit unsigned long.
  988. >
  989. >The following don't work for me in CodeWarrior C.  Any suggestions?
  990. >
  991. >char charCode;
  992. >KeyMap myKeyMap;
  993. >
  994. >GetKeys(myKeyMap);
  995. >--->charCode = KeyMap[37];
  996. >        
  997. >        or
  998. >
  999. >---->for(i=0;i<128;i++) if((*myKeyMap >> i) & 1) break;
  1000. >---->charCode = i;
  1001. >
  1002. >Thanks.
  1003. >Erik Sobel
  1004. >sobel@helix.mgh.harvard.edu
  1005.  
  1006. Erik, here's a generic snippet to translate the return value of GetKeys()
  1007. into a workable array of booleans.  This took me a few hours to figure,
  1008. back when I started with the Mac.  You could alter it to just check for
  1009. the keys you're interested in - but this is so fast on a 6100 that in my
  1010. games you have to hope it doesn't register three times through the main
  1011. loop.  Included is a diagram of how the KeyMap is encoded into the four
  1012. unsigned longs you're seeing.
  1013.  
  1014. void doKeyCheck()
  1015. {
  1016. long     x,y;
  1017. unsigned long     z;
  1018. KeyMap            theKeys;
  1019. Boolean           theKeysDown[128];
  1020.  
  1021.       y = 0;
  1022.       GetKeys(theKeys);
  1023.       
  1024.       for(z = 0; z < 4; z++)
  1025.       {
  1026.          for(x = 16777216; x <= 2147483648 && x > 0; x = x*2)
  1027.          {
  1028.             if(theKeys[z] & x) 
  1029.             {
  1030.                theKeysDown[y] = 1;
  1031.             }
  1032.             y++;
  1033.          }
  1034.          for(x = 65536; x <= 8388608; x = x*2)
  1035.          {
  1036.             if(theKeys[z] & x) 
  1037.             {
  1038.                theKeysDown[y] = 1;
  1039.             }
  1040.             y++;
  1041.          }
  1042.          for(x = 256; x <= 32768; x = x*2)
  1043.          {
  1044.             if(theKeys[z] & x) 
  1045.             {
  1046.                theKeysDown[y] = 1;
  1047.             }
  1048.             y++;
  1049.          }
  1050.          for(x = 1; x <= 128; x = x*2)
  1051.          {
  1052.             if(theKeys[z] & x) 
  1053.             {
  1054.                theKeysDown[y] = 1;
  1055.             }
  1056.             y++;
  1057.          }
  1058.       } 
  1059.  
  1060. }
  1061.  
  1062. +++++++++++++++++++++++++++
  1063.  
  1064. >From thebug@berlin.snafu.de (TheBug)
  1065. Date: Fri, 20 Sep 1996 13:40:12 +0100
  1066. Organization: privat
  1067.  
  1068. In article <kcglug-1909961524350001@news.earthlink.net>,
  1069. kcglug@earthlink.net (Keith & Casey Gugliotto) wrote:
  1070.  
  1071. > Erik, here's a generic snippet to translate the return value of GetKeys()
  1072. > into a workable array of booleans.  This took me a few hours to figure,
  1073. > back when I started with the Mac.  You could alter it to just check for
  1074. > the keys you're interested in - but this is so fast on a 6100 that in my
  1075. > games you have to hope it doesn't register three times through the main
  1076. > loop.  Included is a diagram of how the KeyMap is encoded into the four
  1077. > unsigned longs you're seeing.
  1078.  
  1079.  
  1080. So how does this work if the poor user has not only a keyboard but also a
  1081. joystick that generates keys?
  1082. KeyMap does contain only the status of the device that was the last to
  1083. report a change. If you press and hold something on one device and then
  1084. press some key on another device you only have the key active on the
  1085. second device in KeyMap.
  1086.  
  1087. -- 
  1088. *******************************************************************
  1089. Guido Kˆrber -            Programmer and hardware hacker 
  1090. thebug@berlin.snafu.de    Specialised in mistreating the ADB
  1091. fax: x49-30-773 81 36     Ask me about:
  1092.                            Flightstick Pro, Jetstick
  1093.                            MacEnjoy, MacEnjoy Style
  1094.  
  1095. Opinions expressed herein are mine unless expressly stated 
  1096. otherwise. Similarities with living or undead persons are
  1097. coincidence and not intended - really!   ;-)
  1098. Best use before: (see date printed on backside of message)
  1099. *******************************************************************
  1100.  
  1101. +++++++++++++++++++++++++++
  1102.  
  1103. >From mills@multiad.com (Steve Mills)
  1104. Date: Fri, 20 Sep 1996 11:30:32 -0500
  1105. Organization: Multi-Ad Services, Inc.
  1106.  
  1107. In article <kcglug-1909961524350001@news.earthlink.net>,
  1108. kcglug@earthlink.net (Keith & Casey Gugliotto) wrote:
  1109.  
  1110. >In article <3240105A.43CF@helix.mgh.harvard.edu>, Erik Sobel
  1111. ><sobel@helix.mgh.harvard.edu> wrote:
  1112. >
  1113. >>What is a quick way to get the character value from the GetKeys(KeyMap)
  1114. >>command?  Inside Mac says that KeyMap is a packed array of bits (Boolean
  1115. >>KeyMap[127]) so that letter J == key# 38 makes  KeyMap[37]==1).  
  1116.  
  1117. >void doKeyCheck()
  1118. >{
  1119. >long     x,y;
  1120. >unsigned long     z;
  1121. >KeyMap            theKeys;
  1122. >Boolean           theKeysDown[128];
  1123. >
  1124. [huge function snipped]
  1125. >}
  1126.  
  1127.    Woah there. There's a much easier way. It looks something like:
  1128.  
  1129. Boolean KeyIsDown(KeyMap map, unsigned char key)
  1130. {
  1131.    return ((unsigned char*)map)[key >> 3] >> (key & 7);
  1132. }
  1133.  
  1134. Steve Mills, software engineer
  1135. Multi-Ad Services, Inc. / mills@multiad.com
  1136. Home: muff@visi.com
  1137.  
  1138. +++++++++++++++++++++++++++
  1139.  
  1140. >From ingemar@lysator.liu.se (Ingemar Ragnemalm)
  1141. Date: 20 Sep 1996 08:25:05 GMT
  1142. Organization: (none)
  1143.  
  1144. kcglug@earthlink.net (Keith & Casey Gugliotto) writes:
  1145.  
  1146. >In article <3240105A.43CF@helix.mgh.harvard.edu>, Erik Sobel
  1147. ><sobel@helix.mgh.harvard.edu> wrote:
  1148.  
  1149. >>What is a quick way to get the character value from the GetKeys(KeyMap)
  1150. >>command?  Inside Mac says that KeyMap is a packed array of bits (Boolean
  1151. >>KeyMap[127]) so that letter J == key# 38 makes  KeyMap[37]==1).  
  1152.  
  1153. Just a note for Pascal users: this problem *does not exist* in Pascal!
  1154. The KeyMap is a packed array of Booleans, so we can just look up the
  1155. key we want. C has no packed arrays (and really no true Booleans either
  1156. for that matter) so in C it has to be done the other way.
  1157.  
  1158. var km: KeyMap;
  1159.  
  1160. GetKeys(km);
  1161.  
  1162. if km[someKeyCode] then ...
  1163.  
  1164. Just so you don't get lost in a mess of BAnd, BSL etc for no reason.
  1165.  
  1166. --
  1167. - -
  1168. Ingemar Ragnemalm, PhD
  1169. Image processing, Mac shareware games
  1170. E-mail address: ingemar@isy.liu.se or ingemar@lysator.liu.se
  1171.  
  1172. +++++++++++++++++++++++++++
  1173.  
  1174. >From kcglug@earthlink.net (Keith & Casey Gugliotto)
  1175. Date: Tue, 24 Sep 1996 13:03:42 -0600
  1176. Organization: The Gugliotto's
  1177.  
  1178. In article <mills-2009961130320001@news.orbis.net>, mills@multiad.com
  1179. (Steve Mills) wrote:
  1180.  
  1181. >In article <kcglug-1909961524350001@news.earthlink.net>,
  1182. >kcglug@earthlink.net (Keith & Casey Gugliotto) wrote:
  1183. >
  1184. >>In article <3240105A.43CF@helix.mgh.harvard.edu>, Erik Sobel
  1185. >><sobel@helix.mgh.harvard.edu> wrote:
  1186. >>
  1187. >>>What is a quick way to get the character value from the GetKeys(KeyMap)
  1188. >>>command?  Inside Mac says that KeyMap is a packed array of bits (Boolean
  1189. >>>KeyMap[127]) so that letter J == key# 38 makes  KeyMap[37]==1).  
  1190. >
  1191. >>void doKeyCheck()
  1192. >>{
  1193. >>long     x,y;
  1194. >>unsigned long     z;
  1195. >>KeyMap            theKeys;
  1196. >>Boolean           theKeysDown[128];
  1197. >>
  1198. >[huge function snipped]
  1199. >>}
  1200. >
  1201. >   Woah there. There's a much easier way. It looks something like:
  1202. >
  1203. >Boolean KeyIsDown(KeyMap map, unsigned char key)
  1204. >{
  1205. >   return ((unsigned char*)map)[key >> 3] >> (key & 7);
  1206. >}
  1207. >
  1208. >Steve Mills, software engineer
  1209. >Multi-Ad Services, Inc. / mills@multiad.com
  1210. >Home: muff@visi.com
  1211.  
  1212. As noted, my snippet was generic.
  1213.  
  1214. keith (& casey) gugliotto
  1215. kcglug@earthlink.net
  1216.  
  1217. ---------------------------
  1218.  
  1219. >From Vy Ho <st946tbf@dunx1.ocs.drexel.edu>
  1220. Subject: Help on JDBC
  1221. Date: Fri, 20 Sep 1996 11:32:56 -0400
  1222. Organization: (none)
  1223.  
  1224. Hi netters,
  1225.  
  1226. Please help.  Is there any JDBC driver for Macintoshes yet?  Where can a
  1227. get it?  Free?  Shareware?  Demo?  Fee?  Where can I find valuable
  1228. information on programming JDBC.  I just down load JDBC specification
  1229. from sun so don't point me there please.  I need an tutorial or any sort
  1230. like that.  Your help is important to me.  Any help is appreciated. 
  1231. Thank you very much in advance.  Please send one copy of your reply to
  1232. my e-mail account:  st946tbf@dunx1.ocs.drexel.edu
  1233.  
  1234. Vy Ho
  1235.  
  1236. +++++++++++++++++++++++++++
  1237.  
  1238. >From skovatch@ic.net (Scott Kovatch)
  1239. Date: Mon, 23 Sep 1996 10:39:08 -0400
  1240. Organization: Metrowerks Corporation
  1241.  
  1242. In article <3242B928.6907@dunx1.ocs.drexel.edu>, Vy Ho
  1243. <st946tbf@dunx1.ocs.drexel.edu> wrote:
  1244.  
  1245. >Hi netters,
  1246. >
  1247. >Please help.  Is there any JDBC driver for Macintoshes yet?
  1248.  
  1249. At the moment, I don't believe there are any yet, but I may be wrong. 
  1250. Maybe EveryWare (the Butler SQL people) will be the first?
  1251.  
  1252. >Where can I find valuable
  1253. >information on programming JDBC. 
  1254.  
  1255. The book _Tricks of the Java Programming Gurus_ by Vanderberg, et al., has
  1256. a chapter on JDBC.  It's not huge, but it's a good start.  It has sample
  1257. code, and talks about some of the details about database programming in
  1258. general, not just the JDBC API.
  1259.  
  1260. Scott K.
  1261.  
  1262. - -----------------------------------------------------------------
  1263. Scott Kovatch                                Java Librarian (shhh!)
  1264. Metrowerks Corp.                                    skovatch@ic.net
  1265.                                             skovatch@metrowerks.com
  1266.  
  1267. ---------------------------
  1268.  
  1269. >From g-kendall@nwu.edu (Brian Kendall)
  1270. Subject: Help with polygon graphics in games
  1271. Date: Fri, 13 Sep 1996 22:07:21 -0400
  1272. Organization: Programmer
  1273.  
  1274.  
  1275. I'm thinking of putting together a 3D maze game using polygon graphics. So
  1276. far, I've been able to make a cube in 3D space and draw it to the screen.
  1277. It also can be rotated in three dimensions very quickly.
  1278.  
  1279. Unfortunatly (of course), there would be a lot of polygon objects that
  1280. could go slightly beyond games like Spectre. Could the macintosh handle
  1281. this?
  1282.  
  1283. Any help would be great!
  1284.  
  1285.  
  1286. Brian K.
  1287.  
  1288. ãããããããããããããããããããããããããããããããããããããããããããããããããããããããããããããããããã
  1289. "If you take cranberries and stew them like apple sauce, it tastes
  1290. much more like prunes then rhubarb does." ã Groucho Marx
  1291. ãããããããããããããããããããããããããããããããããããããããããããããããããããããããããããããããããã
  1292.  
  1293. +++++++++++++++++++++++++++
  1294.  
  1295. >From metals@rapidnet.com (Kevin Stone)
  1296. Date: 15 Sep 1996 00:09:33 -0600
  1297. Organization: RapidNet
  1298.  
  1299. Brian Kendall (g-kendall@nwu.edu) wrote:
  1300. : I'm thinking of putting together a 3D maze game using polygon graphics. So
  1301. : far, I've been able to make a cube in 3D space and draw it to the screen.
  1302. : It also can be rotated in three dimensions very quickly.
  1303.  
  1304. : Unfortunatly (of course), there would be a lot of polygon objects that
  1305. : could go slightly beyond games like Spectre. Could the macintosh handle
  1306. : this?
  1307.  
  1308.    Depends upon what Mac you want to do this on.  I expect that Spectre 
  1309.    was written entirely in 68k assembly and probably implemented some form  
  1310.    of a delta rendering algorithm for more efficiency.  It ran great on my 
  1311.    old LC 020.  Writting a 3D game for the 68k series is quite an 
  1312.    undertaking, esspecialy if you want to get more complicated than
  1313.    Spectre.  Hornet and A-10 are about as detailed as you can get on a 
  1314.    68k, and even those engines require quite abit of assembly optimzation 
  1315.    and sophisticated rendering algorithms to get as much speed as they get.
  1316.  
  1317.    You could probably get away writting a maze-like 3D game that's above the 
  1318.    level of Spectre on an 040 25Mhz or better Mac using standard rendering 
  1319.    technqiues and no assembly.  That's just a guess ofcourse.  I've never 
  1320.    programmed graphics for the 68k's.
  1321.  
  1322.    The PowerPC is my forte...
  1323.    The PPC can handle alot without any special assembly optimizations.  
  1324.    I've written a nice 3D polygonal engine that does Gouraud shading 
  1325.    and texture mapping for the PPC without any assembly at all... infact, 
  1326.    it's mostly floating point code.  There's no way you could use floating 
  1327.    point in such great quatities on any 68k Mac and get away with it... 
  1328.    you'd have to use an integer fixed-point format to emulate floating 
  1329.    point numbers.
  1330.  
  1331.    So, to answer your question... yes and no.  Yes, fast Macs 
  1332.    like the 040's and PPC's could do it even if your not the worlds 
  1333.    greatest programmer.  No, slower Macs couldn't do it unless you're 
  1334.    very experienced and know how to optimize.
  1335.  
  1336.    If you need any help in the 3D algorithm department, I'd be happy to 
  1337.    answer any questions you have. :)
  1338.  
  1339. Sincerly,
  1340.   Brian Stone
  1341.   Stone Enterprises
  1342.   metals@rapidnet.com
  1343.  
  1344.  
  1345. +++++++++++++++++++++++++++
  1346.  
  1347. >From kant0031@gold.tc.umn.edu (Krishna M Kant)
  1348. Date: 15 Sep 1996 12:43:03 GMT
  1349. Organization: University of Minnesota
  1350.  
  1351. Kevin Stone (metals@rapidnet.com) wrote:
  1352. :    If you need any help in the 3D algorithm department, I'd be happy to 
  1353. :    answer any questions you have. :)
  1354.  
  1355. OK, I have several questions <g>.  Games like Hornet/A-10 seem to use a
  1356. "delta"  drawing algorithm.  They only draw the portions of polygons that
  1357. have changed from the last screen, thereby greatly minimizing VRAM writes.
  1358. You can see this by doing a force quit and cancelling--the game will only
  1359. draw the polygons which have moved, leaving the rest white. This type of
  1360. engine makes sense when much of the screen stays the same from frame to
  1361. frame (i.e. mostly constant shaded polygons), but does not work well when
  1362. most of the pixels change (i.e. full screen texture mapping) since you
  1363. have the unnecesary overhead of determining which pixels change.  Am I
  1364. correct?  What are the general steps of such an algorithm, assuming you
  1365. are given a forest of BSP trees? 
  1366.  
  1367. --
  1368. Krishna
  1369. kant0031@gold.tc.umn.edu
  1370.  
  1371. +++++++++++++++++++++++++++
  1372.  
  1373. >From jmunkki@alpha.hut.fi (Juri Munkki)
  1374. Date: 16 Sep 1996 00:50:40 GMT
  1375. Organization: Helsinki University of Technology
  1376.  
  1377. In article <51gtkn$ojk@epx.cis.umn.edu> kant0031@gold.tc.umn.edu (Krishna M Kant) writes:
  1378. >"delta"  drawing algorithm.  They only draw the portions of polygons that
  1379. >have changed from the last screen, thereby greatly minimizing VRAM writes.
  1380. >You can see this by doing a force quit and cancelling--the game will only
  1381. >draw the polygons which have moved, leaving the rest white. This type of
  1382. >engine makes sense when much of the screen stays the same from frame to
  1383. >frame (i.e. mostly constant shaded polygons), but does not work well when
  1384. >most of the pixels change (i.e. full screen texture mapping) since you
  1385. >have the unnecesary overhead of determining which pixels change.  Am I
  1386. >correct?
  1387.  
  1388. You can still gain some advantage by using it to prevent overdraw and by
  1389. using it for flat-shaded areas in an otherwise textured game (if you mix
  1390. textures and flat polygons).
  1391.  
  1392. >What are the general steps of such an algorithm, assuming you
  1393. >are given a forest of BSP trees? 
  1394.  
  1395. You can do it on 2D polygons, if you want. Assign codes to colors (A-10
  1396. uses 64 colors and leaves 2 bits for HUD graphics overlays) and scan convert
  1397. into a span list. You then compare it with the span list from the displayed
  1398. frame and draw the differences.
  1399.  
  1400. A-10 pays a price for the HUD, because it has to exclusive or the changes
  1401. into the frame buffer, so it has to read and write video memory to make
  1402. the modifications. (They may do it differently, if there is no HUD overlay
  1403. displayed.)
  1404.  
  1405. Avara uses virtual colors, so that you can have thousands of colors and
  1406. even use patterns to generate more colors in modes that normally have only
  1407. 256 colors or less. The approach means that it can work correctly even
  1408. when the color depth changes in the middle of an animation or when the
  1409. animation spans multiple screens. It also means that it needs an additional
  1410. table lookup before drawing each span, but the cost of doing that is very
  1411. small.
  1412.  
  1413. The critical part of drawing just the differences is in scan converting the
  1414. polygon edges into the span lists. The main difficulty is that the algorithms
  1415. tend to get slow very quickly as the number of overlapping polygons increase.
  1416. For a maze game, you would then want to minimize the number of overlapping
  1417. polygons that are fed to the scan converter. I was able to improve on the
  1418. well known pubished scan conversion algorithms by quite a bit, but it's still
  1419. the major CPU bottleneck in Avara for certain types of scenes.
  1420.  
  1421. In a Descent/Doom/Marathon/Quake like environment, you would want to cull
  1422. as many polygons as is possible before they reach the final stages of the
  1423. pipeline. The use of visibility "portals" works well for this. Quake uses
  1424. bitmaps to indicate what surfaces are potentially visible from a subspace.
  1425.  
  1426. -- 
  1427. Juri Munkki jmunkki@iki.fi        Life is easy when polygons are cheap.
  1428. http://www.iki.fi/jmunkki           Windsurfing: Faster than the wind.
  1429.  
  1430. +++++++++++++++++++++++++++
  1431.  
  1432. >From nick@chem.ucla.edu ( nick.c )
  1433. Date: Mon, 16 Sep 1996 13:49:09 -0800
  1434. Organization: Binary Poet & Molecular Sculptor
  1435.  
  1436.  
  1437.  
  1438. jackw@cdc.net (Jack W) wrote:
  1439.  
  1440. >g-kendall@nwu.edu (Brian Kendall) writes:
  1441. >
  1442. >> I'm thinking of putting together a 3D maze game using polygon graphics. So
  1443. >> far, I've been able to make a cube in 3D space and draw it to the screen.
  1444. >> It also can be rotated in three dimensions very quickly.
  1445. >
  1446. >You might want to look at Black Art of Mac Game Programming
  1447. >and Engines of Creation.
  1448.  
  1449.  
  1450.    I haven't read the _Black Art_ book, but Engines is a kool book
  1451.      and will help.  Also check out _Fast Algorithms_, it's expensive
  1452.      (but worth it, IMHO).
  1453.  
  1454.        _Fast Algorithms for 3D-Graphics_ by Georg Glasser
  1455.        Springer-Verlag, ISBN: 0-387-94288-2  
  1456.     
  1457.        _Engines of Creation_ by Jonathan Blossom
  1458.        Waite Group Press, 1995, ISBN: 1-878739-90-5
  1459.  
  1460.  
  1461.  -------------------= Nicholas C. DeMello, Ph.D. =--------------------
  1462.  
  1463.    Internet: nick@chem.ucla.edu        _/   _/  _/  _/_/_/   _/   _/  
  1464.         AOL: codeweaver               _/_/ _/  _/  _/   _/  _/_/_/ 
  1465.         CIS: 71232,766               _/ _/_/  _/  _/       _/ _/    
  1466.        http://www.chem.ucla.edu/~nick/   _/  _/   _/_/_/  _/   _/     
  1467.  
  1468. +++++++++++++++++++++++++++
  1469.  
  1470. >From kant0031@gold.tc.umn.edu (Krishna Kant)
  1471. Date: Wed, 18 Sep 1996 08:52:10 -0600
  1472. Organization: U of M
  1473.  
  1474. In article <51i890$mqs@nntp.hut.fi>, jmunkki@alpha.hut.fi (Juri Munkki) wrote:
  1475.  
  1476. > You can do it on 2D polygons, if you want. Assign codes to colors (A-10
  1477. > uses 64 colors and leaves 2 bits for HUD graphics overlays) and scan convert
  1478. > into a span list. You then compare it with the span list from the displayed
  1479. > frame and draw the differences.
  1480. >
  1481. > The critical part of drawing just the differences is in scan converting the
  1482. > polygon edges into the span lists. The main difficulty is that the algorithms
  1483. > tend to get slow very quickly as the number of overlapping polygons increase.
  1484. > For a maze game, you would then want to minimize the number of overlapping
  1485. > polygons that are fed to the scan converter. I was able to improve on the
  1486. > well known pubished scan conversion algorithms by quite a bit, but it's still
  1487. > the major CPU bottleneck in Avara for certain types of scenes.
  1488.  
  1489. Ahh, I see.  Thanks!  I was thinking of doing it differently:  Each
  1490. polygon stores a set of "previous" screen coordinates.  First you make a
  1491. list of polygons in front to back order, using the BSP trees.  You
  1492. traverse each polygon from back to front.  If the coordinates change, you
  1493. fill in the newly covered areas with the polygon's color.  For the pixels
  1494. which are "uncovered", you cast a ray through the polygon list, starting
  1495. with the one ofter this polygon.
  1496.  
  1497. I guess I'll have to try both methods and see which works well for my data.
  1498.  
  1499. > In a Descent/Doom/Marathon/Quake like environment, you would want to cull
  1500. > as many polygons as is possible before they reach the final stages of the
  1501. > pipeline. The use of visibility "portals" works well for this. Quake uses
  1502. > bitmaps to indicate what surfaces are potentially visible from a subspace.
  1503.  
  1504. I lost you here.  Can you explain?  What is a portal, and what do these
  1505. bitmaps represent?
  1506.  
  1507. -- 
  1508. Krishna
  1509. kant0031@gold.tc.umn.edu
  1510.  
  1511. +++++++++++++++++++++++++++
  1512.  
  1513. >From harper21@execpc.com (Jomom)
  1514. Date: 19 Sep 1996 22:31:22 GMT
  1515. Organization: Exec-PC BBS Internet - Milwaukee, WI
  1516.  
  1517. In article <nick-1609961349090001@news.ucla.edu>, nick@chem.ucla.edu (
  1518. nick.c ) wrote:
  1519.  
  1520. > jackw@cdc.net (Jack W) wrote:
  1521. > >g-kendall@nwu.edu (Brian Kendall) writes:
  1522. > >
  1523. > >> I'm thinking of putting together a 3D maze game using polygon graphics. So
  1524. > >> far, I've been able to make a cube in 3D space and draw it to the screen.
  1525. > >> It also can be rotated in three dimensions very quickly.
  1526. > >
  1527. > >You might want to look at Black Art of Mac Game Programming
  1528. > >and Engines of Creation.
  1529. >    I haven't read the _Black Art_ book, but Engines is a kool book
  1530. >      and will help.  Also check out _Fast Algorithms_, it's expensive
  1531. >      (but worth it, IMHO).
  1532. >        _Fast Algorithms for 3D-Graphics_ by Georg Glasser
  1533. >        Springer-Verlag, ISBN: 0-387-94288-2  
  1534. >     
  1535. >        _Engines of Creation_ by Jonathan Blossom
  1536. >        Waite Group Press, 1995, ISBN: 1-878739-90-5
  1537.  
  1538. I thought that Engines really sucked.
  1539. Sean
  1540.  
  1541. +++++++++++++++++++++++++++
  1542.  
  1543. >From Zachary C Jones <zcj+@andrew.cmu.edu>
  1544. Date: Fri, 20 Sep 1996 14:55:15 -0400
  1545. Organization: Freshman, Art, Carnegie Mellon, Pittsburgh, PA
  1546.  
  1547. Excerpts from netnews.comp.sys.mac.programmer.games: 19-Sep-96 Re: Help
  1548. with polygon graph.. by Jomom@execpc.com 
  1549. > In article <nick-1609961349090001@news.ucla.edu>, nick@chem.ucla.edu (
  1550. > nick.c ) wrote:
  1551. > > jackw@cdc.net (Jack W) wrote:
  1552. > > 
  1553. > > >g-kendall@nwu.edu (Brian Kendall) writes:
  1554. > > >
  1555. > > >> I'm thinking of putting together a 3D maze game using polygon
  1556. graphics. So
  1557. > > >> far, I've been able to make a cube in 3D space and draw it to the
  1558. screen.
  1559. > > >> It also can be rotated in three dimensions very quickly.
  1560. > > >
  1561. > > >You might want to look at Black Art of Mac Game Programming
  1562. > > >and Engines of Creation.
  1563. > > 
  1564. > > 
  1565. > >    I haven't read the _Black Art_ book, but Engines is a kool book
  1566. > >      and will help.  Also check out _Fast Algorithms_, it's expensive
  1567. > >      (but worth it, IMHO).
  1568. > > 
  1569. > >        _Fast Algorithms for 3D-Graphics_ by Georg Glasser
  1570. > >        Springer-Verlag, ISBN: 0-387-94288-2  
  1571. > >     
  1572. > >        _Engines of Creation_ by Jonathan Blossom
  1573. > >        Waite Group Press, 1995, ISBN: 1-878739-90-5
  1574. > I thought that Engines really sucked.
  1575. > Sean
  1576. I have The black Art of Mac Game Programming and IMHO it is bitchin'. 
  1577. And is new worht the $40 is calls for.
  1578.  
  1579. - ---------------------------<({[][][]})>--------------------------------
  1580. zcj@andrew.cmu.edu
  1581.  
  1582. "Any sufficiently advanced technology is indistinguishable from magic"
  1583.     -Arthur C. Clarke
  1584.  
  1585. "Any sufficiently detailed magic will appear to be a science
  1586. "    -?
  1587.  
  1588. http://quiff.res.cmu.edu 
  1589.  
  1590. +++++++++++++++++++++++++++
  1591.  
  1592. >From anders.backman@macademic.se (Anders Backman)
  1593. Date: Fri, 20 Sep 1996 21:03:45 +0200
  1594. Organization: Hemma
  1595.  
  1596. >snip
  1597. > >    I haven't read the _Black Art_ book, but Engines is a kool book
  1598. > >      and will help.  Also check out _Fast Algorithms_, it's expensive
  1599. > >      (but worth it, IMHO).
  1600. > > 
  1601. > >        _Fast Algorithms for 3D-Graphics_ by Georg Glasser
  1602. > >        Springer-Verlag, ISBN: 0-387-94288-2  
  1603. > >     
  1604. > >        _Engines of Creation_ by Jonathan Blossom
  1605. > >        Waite Group Press, 1995, ISBN: 1-878739-90-5
  1606. > I thought that Engines really sucked.
  1607. > Sean
  1608.  
  1609. The _Black Art_ book is a fine flatshaded polygon renderer but the
  1610. chapters on texturemapping is a bit lame. For texturemapped polys try
  1611. Andrew Meggs excellent Screaming Cabala texturemapper with unbeatable
  1612. speed (and it's free too) or take a look at 3DGM GameMachine; a
  1613. texturemapping 6DOF commercial library with DXF import, collision
  1614. detection (which is actually harder to do fast than texturemapping
  1615. itself), fog, animated texmaps and lots of help for the gameprogrammer.
  1616. Only problem is that it's expensive.
  1617.  
  1618. Why should enginesw per se suck? A 3D engine is simply {;)} a buzzword for
  1619. someones 3D routines.
  1620.  
  1621. /Backman
  1622.  
  1623. +++++++++++++++++++++++++++
  1624.  
  1625. >From ingemar@lysator.liu.se (Ingemar Ragnemalm)
  1626. Date: 21 Sep 1996 06:52:11 GMT
  1627. Organization: (none)
  1628.  
  1629. anders.backman@macademic.se (Anders Backman) writes:
  1630.  
  1631. > For texturemapped polys try
  1632. >Andrew Meggs excellent Screaming Cabala texturemapper with unbeatable
  1633. >speed (and it's free too)
  1634.  
  1635. It is impressive, but poorly documented and as far as I can tell, a
  1636. programming interface that is somewhere betwen awkward and hopeless.
  1637. Feel free to argue against me, but has anyone made any hacks with it
  1638. where you have put in your own shapes?
  1639.  
  1640. >or take a look at 3DGM GameMachine; a
  1641. >texturemapping 6DOF commercial library with DXF import, collision
  1642. >detection (which is actually harder to do fast than texturemapping
  1643. >itself), fog, animated texmaps and lots of help for the gameprogrammer.
  1644. >Only problem is that it's expensive.
  1645.  
  1646. I don't find $200 particularly shocking for a lib like this. It is pretty
  1647. good, fairly well documented and not too hard to use, at least until you
  1648. want to get textures in. Getting the right texture on each polygon is rather
  1649. tedious. And it is fast.
  1650.  
  1651. --
  1652. - -
  1653. Ingemar Ragnemalm, PhD
  1654. Image processing, Mac shareware games
  1655. E-mail address: ingemar@isy.liu.se or ingemar@lysator.liu.se
  1656.  
  1657. +++++++++++++++++++++++++++
  1658.  
  1659. >From ingemar@lysator.liu.se (Ingemar Ragnemalm)
  1660. Date: 21 Sep 1996 06:52:11 GMT
  1661. Organization: (none)
  1662.  
  1663. Reposting article removed by rogue canceller.
  1664.  
  1665. anders.backman@macademic.se (Anders Backman) writes:
  1666.  
  1667. > For texturemapped polys try
  1668. >Andrew Meggs excellent Screaming Cabala texturemapper with unbeatable
  1669. >speed (and it's free too)
  1670.  
  1671. It is impressive, but poorly documented and as far as I can tell, a
  1672. programming interface that is somewhere betwen awkward and hopeless.
  1673. Feel free to argue against me, but has anyone made any hacks with it
  1674. where you have put in your own shapes?
  1675.  
  1676. >or take a look at 3DGM GameMachine; a
  1677. >texturemapping 6DOF commercial library with DXF import, collision
  1678. >detection (which is actually harder to do fast than texturemapping
  1679. >itself), fog, animated texmaps and lots of help for the gameprogrammer.
  1680. >Only problem is that it's expensive.
  1681.  
  1682. I don't find $200 particularly shocking for a lib like this. It is pretty
  1683. good, fairly well documented and not too hard to use, at least until you
  1684. want to get textures in. Getting the right texture on each polygon is rather
  1685. tedious. And it is fast.
  1686.  
  1687. --
  1688. - -
  1689. Ingemar Ragnemalm, PhD
  1690. Image processing, Mac shareware games
  1691. E-mail address: ingemar@isy.liu.se or ingemar@lysator.liu.se
  1692.  
  1693. +++++++++++++++++++++++++++
  1694.  
  1695. >From nick@chem.ucla.edu ( nick.c @MT )
  1696. Date: Mon, 23 Sep 1996 13:25:32 -0800
  1697. Organization: MacTech Magazine
  1698.  
  1699.  
  1700.  
  1701. harper21@execpc.com (Jomom) wrote:
  1702.  
  1703. >nick@chem.ucla.edu ( nick.c ) wrote:
  1704. >
  1705. >> jackw@cdc.net (Jack W) wrote:
  1706.  
  1707. >> >You might want to look at Black Art of Mac Game Programming
  1708. >> >and Engines of Creation.
  1709. >> 
  1710. >>    I haven't read the _Black Art_ book, but Engines is a kool book
  1711. >>      and will help.  Also check out _Fast Algorithms_, it's expensive
  1712. >>      (but worth it, IMHO).
  1713. >> 
  1714. >>        _Fast Algorithms for 3D-Graphics_ by Georg Glasser
  1715. >>        Springer-Verlag, ISBN: 0-387-94288-2  
  1716. >>     
  1717. >>        _Engines of Creation_ by Jonathan Blossom
  1718. >>        Waite Group Press, 1995, ISBN: 1-878739-90-5
  1719. >
  1720. >I thought that Engines really sucked.
  1721. >                                   Sean
  1722.  
  1723.  
  1724.    Sean,
  1725.  
  1726.       I think Engines is a pretty kool book--but I'm curious
  1727.         about why you didn't like it?  ie why do you think it
  1728.         sucked (honest question)?
  1729.  
  1730. ____Nicholas C. DeMello, Ph.D.________________________________________
  1731.  
  1732.   Online for MacTech Magazine, the Journal of Macintosh Programming
  1733.      http://www.MacTech.com/
  1734.                                        _/   _/  _/  _/_/_/   _/   _/  
  1735.   Chemistry: Nick@chem.UCLA.edu       _/_/ _/  _/  _/   _/  _/_/_/ 
  1736.     MacTech: Online@MacTech.com      _/ _/_/  _/  _/       _/ _/    
  1737.        http://www.chem.ucla.edu/~nick/   _/  _/   _/_/_/  _/   _/     
  1738.  
  1739. ---------------------------
  1740.  
  1741. >From Tim Burress <tim@twics.com>
  1742. Subject: How to determine volume-directory of current application?
  1743. Date: 20 Sep 1996 20:44:03 GMT
  1744. Organization: TWICS - Tokyo Public Access Internet
  1745.  
  1746. I need to be able to find the volume and directory IDs of the current
  1747. application, without necessarily knowing the name of the application or
  1748. how it was launched. Is there a good way to do this? The background is
  1749. that I want to store some application-specific index files and data
  1750. structures in a folder that will be inside the same folder that contains
  1751. the application. I could just use a relative path name, but IM leaves me
  1752. wondering if that will always work, especially in cases where the user
  1753. may have double-clicked on a document that is stored somewhere else, or
  1754. where the application is responding to an Apple Event.
  1755.  
  1756. I've noticed that some applications, like Eudora, Netscape, and Nuntius,
  1757. place folders for this kind of stuff inside the Preferences folder, but
  1758. that doesn't seem like a very clean solution.
  1759.  
  1760. If you have any ideas, I'd appreciate a note, either by E-mail or here in
  1761. this group. Thanks!
  1762.  
  1763. Tim
  1764.  
  1765. +++++++++++++++++++++++++++
  1766.  
  1767. >From jumplong@aol.com (Jump Long)
  1768. Date: 21 Sep 1996 02:59:42 -0400
  1769. Organization: America Online, Inc. (1-800-827-6364)
  1770.  
  1771. >I need to be able to find the volume and directory IDs of the
  1772. >current application, without necessarily knowing the name of the
  1773. >application or how it was launched. Is there a good way to do
  1774. >this? The background is that I want to store some
  1775. >application-specific index files and data structures in a folder
  1776. >that will be inside the same folder that contains the
  1777. >application. I could just use a relative path name, but IM
  1778. >leaves me wondering if that will always work, especially in
  1779. >cases where the user may have double-clicked on a document that
  1780. >is stored somewhere else, or where the application is responding
  1781. >to an Apple Event.
  1782.  
  1783. The Macintosh Programming FAQ covers this topic in the Files section with
  1784. sample code. The exact URL to that Q&A is
  1785. <http://www.best.com/~ckt/faq/Four.html#18>.
  1786.  
  1787. - Jim Luther
  1788.  
  1789. +++++++++++++++++++++++++++
  1790.  
  1791. >From jumplong@aol.com (Jump Long)
  1792. Date: 21 Sep 1996 02:59:42 -0400
  1793. Organization: America Online, Inc. (1-800-827-6364)
  1794.  
  1795. Reposting article removed by rogue canceller.
  1796.  
  1797. >I need to be able to find the volume and directory IDs of the
  1798. >current application, without necessarily knowing the name of the
  1799. >application or how it was launched. Is there a good way to do
  1800. >this? The background is that I want to store some
  1801. >application-specific index files and data structures in a folder
  1802. >that will be inside the same folder that contains the
  1803. >application. I could just use a relative path name, but IM
  1804. >leaves me wondering if that will always work, especially in
  1805. >cases where the user may have double-clicked on a document that
  1806. >is stored somewhere else, or where the application is responding
  1807. >to an Apple Event.
  1808.  
  1809. The Macintosh Programming FAQ covers this topic in the Files section with
  1810. sample code. The exact URL to that Q&A is
  1811. <http://www.best.com/~ckt/faq/Four.html#18>.
  1812.  
  1813. - Jim Luther
  1814.  
  1815. ---------------------------
  1816.  
  1817.  
  1818. +++++++++++++++++++++++++++
  1819.  
  1820. >From Stephen.Jonke@gsfc.nasa.gov (Stephen Jonke)
  1821. Date: Tue, 17 Sep 1996 10:06:00 -0400
  1822. Organization: NASA Goddard Space Flight Center -- Greenbelt, Maryland USA
  1823.  
  1824. At 1:52 AM -0400 9/17/96, Clark Martin wrote:
  1825. > tell application "Finder" on machine "Remote Mac"  -- that may be 'of'
  1826. > instead of 'on', I never can remember
  1827. >    open file "TheApp" of folder "Applications" of disk "The Disk"
  1828. > end tell
  1829.  
  1830. Is there any way to do this without need to hardcode the path?  In other
  1831. words I want the remote Mac to do the work of locating the application
  1832. just like when on my local Mac if I double click a ClarisWorks document
  1833. the Mac opens the ClarisWorks application - it knows where the application
  1834. is and launches it.
  1835.  
  1836. On a related note, why is that AppleScripts require you to manually find
  1837. the application you specify in a tell statement?  Similar to the
  1838. ClarisWorks document example, it seems that it ought to be able to figure
  1839. this out on its own, no?
  1840.  
  1841. Steve
  1842.  
  1843. -- 
  1844. Seen in computer peripheral ad: "User-friendly dip switches!"
  1845.  
  1846. +++++++++++++++++++++++++++
  1847.  
  1848. >From cmartin@rahul.net (Clark Martin)
  1849. Date: Mon, 16 Sep 1996 22:52:45 -0700
  1850. Organization: a2i network
  1851.  
  1852. In article <Stephen.Jonke-1609961722260001@joe.gsfc.nasa.gov>,
  1853. Stephen.Jonke@gsfc.nasa.gov (Stephen Jonke) wrote:
  1854.  
  1855. > What is the proper way to launch an application on a remote Mac with an
  1856. > AppleScript?  Keep in mind that when you script things remotely you can't
  1857. > tell an application to do something unless it is *already* running.  At
  1858. > least not as far as I can tell.
  1859. > Trying to tell the Finder on the remote machine to open application
  1860. > "SomeApp" doesn't work because when you compile the script the script
  1861. > editor asks you to locate the application on the local Mac!
  1862. > Please email responses in addition to (or instead of) posting.  Thanks,
  1863.  
  1864.  
  1865. Something like:
  1866.  
  1867. tell application "Finder" on machine "Remote Mac"  -- that may be 'of'
  1868. instead of 'on', I never can remember
  1869.    open file "TheApp" of folder "Applications" of disk "The Disk"
  1870. end tell
  1871.  
  1872. -- 
  1873. Clark Martin
  1874. Macintosh Consultant
  1875. Redwood City, CA, USA
  1876. Another designated driver on the Information Super Highway.
  1877.  
  1878. +++++++++++++++++++++++++++
  1879.  
  1880. >From jelemans@aurora-net.com (john elemans)
  1881. Date: Wed, 18 Sep 1996 11:19:20 -0800
  1882. Organization: hundred peaches inc
  1883.  
  1884. Try,..
  1885.  
  1886.   open file "TheApp" of folder "Applications" of the startup disk
  1887.  
  1888.  
  1889. In article <Stephen.Jonke-1709961006010001@joe.gsfc.nasa.gov>,
  1890. Stephen.Jonke@gsfc.nasa.gov (Stephen Jonke) wrote:
  1891.  
  1892. > At 1:52 AM -0400 9/17/96, Clark Martin wrote:
  1893. > > 
  1894. > > tell application "Finder" on machine "Remote Mac"  -- that may be 'of'
  1895. > > instead of 'on', I never can remember
  1896. > >    open file "TheApp" of folder "Applications" of disk "The Disk"
  1897. > > end tell
  1898. > Is there any way to do this without need to hardcode the path?  In other
  1899. > words I want the remote Mac to do the work of locating the application
  1900. > just like when on my local Mac if I double click a ClarisWorks document
  1901. > the Mac opens the ClarisWorks application - it knows where the application
  1902. > is and launches it.
  1903. > On a related note, why is that AppleScripts require you to manually find
  1904. > the application you specify in a tell statement?  Similar to the
  1905. > ClarisWorks document example, it seems that it ought to be able to figure
  1906. > this out on its own, no?
  1907. > Steve
  1908. > -- 
  1909. > Seen in computer peripheral ad: "User-friendly dip switches!"
  1910.  
  1911. +++++++++++++++++++++++++++
  1912.  
  1913. >From jonpugh@netcom.com (Jon Pugh)
  1914. Date: Sun, 22 Sep 1996 05:40:47 GMT
  1915. Organization: Will hack for food
  1916.  
  1917. Stephen Jonke (Stephen.Jonke@gsfc.nasa.gov) wrote:
  1918. > At 1:52 AM -0400 9/17/96, Clark Martin wrote:
  1919. > > 
  1920. > > tell application "Finder" on machine "Remote Mac"  -- that may be 'of'
  1921. > > instead of 'on', I never can remember
  1922. > >    open file "TheApp" of folder "Applications" of disk "The Disk"
  1923. > > end tell
  1924.  
  1925. > Is there any way to do this without need to hardcode the path?  In other
  1926. > words I want the remote Mac to do the work of locating the application
  1927. > just like when on my local Mac if I double click a ClarisWorks document
  1928. > the Mac opens the ClarisWorks application - it knows where the application
  1929. > is and launches it.
  1930.  
  1931. This works:
  1932.  
  1933. tell application "Finder" of machine "Office in a Box"
  1934.     open application file id "R*ch"
  1935. end tell
  1936.  
  1937.  
  1938. > On a related note, why is that AppleScripts require you to manually find
  1939. > the application you specify in a tell statement?  Similar to the
  1940. > ClarisWorks document example, it seems that it ought to be able to figure
  1941. > this out on its own, no?
  1942.  
  1943. This is just a bug.  It's not supposed to ask so much and it will be fixed 
  1944. some day.
  1945.  
  1946. Jon
  1947.  
  1948. +++++++++++++++++++++++++++
  1949.  
  1950. >From jonpugh@netcom.com (Jon Pugh)
  1951. Date: Sun, 22 Sep 1996 05:40:47 GMT
  1952. Organization: Will hack for food
  1953.  
  1954. Reposting article removed by rogue canceller.
  1955.  
  1956. Stephen Jonke (Stephen.Jonke@gsfc.nasa.gov) wrote:
  1957. > At 1:52 AM -0400 9/17/96, Clark Martin wrote:
  1958. > > 
  1959. > > tell application "Finder" on machine "Remote Mac"  -- that may be 'of'
  1960. > > instead of 'on', I never can remember
  1961. > >    open file "TheApp" of folder "Applications" of disk "The Disk"
  1962. > > end tell
  1963.  
  1964. > Is there any way to do this without need to hardcode the path?  In other
  1965. > words I want the remote Mac to do the work of locating the application
  1966. > just like when on my local Mac if I double click a ClarisWorks document
  1967. > the Mac opens the ClarisWorks application - it knows where the application
  1968. > is and launches it.
  1969.  
  1970. This works:
  1971.  
  1972. tell application "Finder" of machine "Office in a Box"
  1973.     open application file id "R*ch"
  1974. end tell
  1975.  
  1976.  
  1977. > On a related note, why is that AppleScripts require you to manually find
  1978. > the application you specify in a tell statement?  Similar to the
  1979. > ClarisWorks document example, it seems that it ought to be able to figure
  1980. > this out on its own, no?
  1981.  
  1982. This is just a bug.  It's not supposed to ask so much and it will be fixed 
  1983. some day.
  1984.  
  1985. Jon
  1986.  
  1987. ---------------------------
  1988.  
  1989. >From Graham Cox <graham@impro.demon.co.uk>
  1990. Subject: Learn C++ on the Mac with MacZoop- new website
  1991. Date: Mon, 23 Sep 1996 09:37:54 +0100
  1992. Organization: Image Processing and Vision UK Ltd.
  1993.  
  1994. If you are a Mac developer looking for a small, simple C++ framework, 
  1995. or a beginner looking to get into C++ on the Mac, check out:
  1996.  
  1997. http://www.warwick.ac.uk/~corbe/MacZoop/MacZoop.html
  1998.  
  1999. There is no commercial interest in this site or MacZoop- this is 
  2000. "pure" freeware.
  2001.  
  2002. regrads, Graham Cox, MacZoop author.
  2003.  
  2004. ---------------------------
  2005.  
  2006. >From glhansen@copper.ucs.indiana.edu (Gregory Loren Hansen)
  2007. Subject: MacMkLinux Freezes
  2008. Date: 21 Sep 1996 22:38:00 GMT
  2009. Organization: Indiana University, Bloomington
  2010.  
  2011.  
  2012. I've finally recieved the MacMkLinux DR2 CD, installed it on my computer,
  2013. and when I try to boot it freezes.  It starts out fine, gets to the
  2014. MkLinux splash where it gives you the option of booting MacOS or Linux.
  2015. If I boot MacOS it's fine.  If I boot Linux, the whole computer freezes.
  2016. The mouse doesn't move any more, I can't hear the hard drive spinning.
  2017. ctrl-apple-reset still works.
  2018.  
  2019. I have a Power100, an SVGA monitor plugged into the SVGA port of the video
  2020. card that came with my computer, 40 megs RAM.  I have 64megs swap, 300
  2021. megs /root, and 400 megs /usr.  
  2022.  
  2023. My MacOS drive has SCSI ID 0, and my MkLinux drive has SCSI ID 1.  The
  2024. MacOS drive is the currently selected boot drive.  'There are five
  2025. partitions total on my Linux drive, I have nothing plugged into the SCSI
  2026. port, I have a CD-ROM drive at SCSI ID 3.  And I'm plugged into the school
  2027. ethernet, but I haven't gotten as far as setnet yet.
  2028.  
  2029. What am I doing wrong?
  2030.  
  2031.  
  2032. +++++++++++++++++++++++++++
  2033.  
  2034. >From ericb@pobox.com (Eric Bennett)
  2035. Date: 22 Sep 1996 03:38:39 GMT
  2036. Organization: Penn State
  2037.  
  2038. In article <521qo8$58p@dismay.ucs.indiana.edu>
  2039. glhansen@copper.ucs.indiana.edu (Gregory Loren Hansen) writes:
  2040.  
  2041. > I have a Power100, an SVGA monitor plugged into the SVGA port of the video
  2042. > card that came with my computer, 40 megs RAM.  I have 64megs swap, 300
  2043. > megs /root, and 400 megs /usr.  
  2044. > My MacOS drive has SCSI ID 0, and my MkLinux drive has SCSI ID 1.  The
  2045. > MacOS drive is the currently selected boot drive.  'There are five
  2046. > partitions total on my Linux drive, I have nothing plugged into the SCSI
  2047. > port, I have a CD-ROM drive at SCSI ID 3.  And I'm plugged into the school
  2048. > ethernet, but I haven't gotten as far as setnet yet.
  2049.  
  2050. I haven't been following MkLinux much lately since I just upgraded to a
  2051. PCI machine that MkLinux doesn't support, but...
  2052.  
  2053. * make sure you use the proper partition numbering scheme (MkLinux and
  2054. the MacOS, including the Mac SCSI utility you used to partition the
  2055. MkLinux drive, use different numbering schemes.  One of them starts
  2056. numbering with 0, the other starts with 1.  This used to be in the
  2057. MkLinux docs).
  2058.  
  2059. * MkLinux video support has been rather spotty for nonstandard video. 
  2060. Macs with AV cards were not supported at all for awhile.  Perhaps the
  2061. VGA port on Power Computing machines is not supported.
  2062.  
  2063. You might consider subscribing to MkLinux mailing lists and asking
  2064. about your problems there.  See
  2065. http://mklinux.apple.com/forms/subscribe.html for info.
  2066.  
  2067. -Eric Bennett (ericb@pobox.com; http://www.pobox.com/~ericb)
  2068.  
  2069. Drawing on my fine command of the language, I said nothing.
  2070. -Robert Benchley
  2071.  
  2072. +++++++++++++++++++++++++++
  2073.  
  2074. >From ericb@pobox.com (Eric Bennett)
  2075. Date: 22 Sep 1996 03:38:39 GMT
  2076. Organization: Penn State
  2077.  
  2078. Reposting article removed by rogue canceller.
  2079.  
  2080. In article <521qo8$58p@dismay.ucs.indiana.edu>
  2081. glhansen@copper.ucs.indiana.edu (Gregory Loren Hansen) writes:
  2082.  
  2083. > I have a Power100, an SVGA monitor plugged into the SVGA port of the video
  2084. > card that came with my computer, 40 megs RAM.  I have 64megs swap, 300
  2085. > megs /root, and 400 megs /usr.  
  2086. > My MacOS drive has SCSI ID 0, and my MkLinux drive has SCSI ID 1.  The
  2087. > MacOS drive is the currently selected boot drive.  'There are five
  2088. > partitions total on my Linux drive, I have nothing plugged into the SCSI
  2089. > port, I have a CD-ROM drive at SCSI ID 3.  And I'm plugged into the school
  2090. > ethernet, but I haven't gotten as far as setnet yet.
  2091.  
  2092. I haven't been following MkLinux much lately since I just upgraded to a
  2093. PCI machine that MkLinux doesn't support, but...
  2094.  
  2095. * make sure you use the proper partition numbering scheme (MkLinux and
  2096. the MacOS, including the Mac SCSI utility you used to partition the
  2097. MkLinux drive, use different numbering schemes.  One of them starts
  2098. numbering with 0, the other starts with 1.  This used to be in the
  2099. MkLinux docs).
  2100.  
  2101. * MkLinux video support has been rather spotty for nonstandard video. 
  2102. Macs with AV cards were not supported at all for awhile.  Perhaps the
  2103. VGA port on Power Computing machines is not supported.
  2104.  
  2105. You might consider subscribing to MkLinux mailing lists and asking
  2106. about your problems there.  See
  2107. http://mklinux.apple.com/forms/subscribe.html for info.
  2108.  
  2109. -Eric Bennett (ericb@pobox.com; http://www.pobox.com/~ericb)
  2110.  
  2111. Drawing on my fine command of the language, I said nothing.
  2112. -Robert Benchley
  2113.  
  2114. ---------------------------
  2115.  
  2116. >From pthomann@ripco.com (Paul Thomann)
  2117. Subject: Macsbug questions
  2118. Date: Sun, 22 Sep 1996 01:53:58 GMT
  2119. Organization: Ripco Internet BBS Chicago
  2120.  
  2121. Since the 7200/90 I use freezes up far more often than I'd like.  I was
  2122. wondering whether trying to hone in on the problem app's (or memory
  2123. locations) would be something appropriate to do with Macsbug.  And if so
  2124. is there a good reference book about how to use Macsbug?  Many thanks in
  2125. advance.
  2126.  
  2127. -- 
  2128. pthomann@ripco.com         |   You can never have to much
  2129. Chicago, USA               |   shelving or closet space.
  2130.  
  2131. +++++++++++++++++++++++++++
  2132.  
  2133. >From david@interport.net (David)
  2134. Date: 22 Sep 1996 01:26:40 -0400
  2135. Organization: Interport Communications Corp.
  2136.  
  2137. Paul Thomann (pthomann@ripco.com) wrote:
  2138. : Since the 7200/90 I use freezes up far more often than I'd like.  I was
  2139. : wondering whether trying to hone in on the problem app's (or memory
  2140. : locations) would be something appropriate to do with Macsbug.  And if so
  2141.  
  2142. I don't think MB will be of much use to you here; if it's an application,
  2143. you should be able to tell when it crashes; if it's an extension or system
  2144. problem, diagnosing it with MB will require a very thorough knowledge of
  2145. Mac assembly. 
  2146.  
  2147. I'd recommend Cassady&Greene's Conflict Catcher software. If you really
  2148. have some reproducible evil in your combination of software, it will be
  2149. able to figure it out.
  2150.  
  2151. Apple has a little text file with MB, I believe, which describes the
  2152. basics. Just for the es (quit current app) and rs (restart) commands,
  2153. everyone should have it installed. But using it seriously is basically a
  2154. propellorhead thing.
  2155.  
  2156. David |-:)
  2157.  
  2158. +++++++++++++++++++++++++++
  2159.  
  2160. >From "Thomas L. Ferrell" <ferrelltl@ornl.gov>
  2161. Date: 22 Sep 1996 05:46:31 GMT
  2162. Organization: Oak Ridge National Lab
  2163.  
  2164. pthomann@ripco.com (Paul Thomann) wrote:
  2165. >Since the 7200/90 I use freezes up far more often than I'd like.  I was
  2166. >wondering whether trying to hone in on the problem app's (or memory
  2167. >locations) would be something appropriate to do with Macsbug.  And if >so is there a good reference book about how to use Macsbug? =
  2168.  Many >thanks in advance.
  2169. >-- 
  2170. >pthomann@ripco.com         |   You can never have to much
  2171. >Chicago, USA               |   shelving or closet space.
  2172.  
  2173.  
  2174. Hi, You should first try some easier things. Upgrade to 7.5.5 if you haven't done so. Zap your PRAM 3-4 times. Use Extensions Manage=
  2175. r to turn off half your non-essential extensions, reboot and see if the problem persists. If not, you have an extension conflict in =
  2176. the remaining half. Turn on half of these, reboot and so on. Have you rebuilt your desktop in the past few months? If the above is n=
  2177. o help, then try to see what things are most suspect and use Macsbug as a last resort. You can get info at
  2178. http://www.scruz.net/~crawford/Computers/macsbug.html
  2179. Good Luck,
  2180. tom
  2181.  
  2182.  
  2183. +++++++++++++++++++++++++++
  2184.  
  2185. >From yoram_n@netvision.net.il (Yoram Ney)
  2186. Date: 22 Sep 1996 17:22:19 GMT
  2187. Organization: NetVision LTD.
  2188.  
  2189. In article <pthomann-2109962054140001@192.0.2.1>, pthomann@ripco.com (Paul
  2190. Thomann) wrote:
  2191.  
  2192. >Since the 7200/90 I use freezes up far more often than I'd like.  I was
  2193. >wondering whether trying to hone in on the problem app's (or memory
  2194. >locations) would be something appropriate to do with Macsbug.  And if so
  2195. >is there a good reference book about how to use Macsbug?  Many thanks in
  2196. >advance.
  2197.  
  2198. I've been using Apple's "MacsBug Reference and Debugging Guide", though I
  2199. must admit I would have loved to see a book that is to Macsbug what Scott
  2200. Knaster's books are to the Mac.
  2201.   Apple's "MacsBug Reference and Debugging Guide" certainly covers Macsbug
  2202. well for conventional use. However:
  2203.  
  2204.  * Quite a number of new features have been added to Macsbug (notably 
  2205.    PowerPC support) since this book was published. While Macsbug's
  2206.    inbuilt 'Help' mechanism is always up to date, this is hardly a nice
  2207.    way to welcome anyone into the Mac-debugging world. An up-to-date
  2208.    version of Apple's Reference book is certainly in place if not
  2209.    overdue.
  2210.  
  2211.  * It is usually _not_ very long before you hit Macsbug's limits,
  2212.    (or at least before they come into sight) so if any of the non-Apple 
  2213.    books (e.g. Otmer and Strauss "Debugging Mac Software with
  2214.    Macsbug") have "insiders' secrets" I would certainly give them a
  2215.    browse for possible extension of Macsbug fundamental capabilities.
  2216.  
  2217. I'd use conventional methods of figuring crashes out, i.e. conflict isolation
  2218. and/or installation of new system software before plunging into
  2219. the Assembly jungle of programs you don't have the source for.
  2220.  
  2221. If you nontheless want to go about it the low-level way, you can put
  2222. Macsbug in the System Folder anyway, and keep some record of WHere the
  2223. crashes occur, to see whether there's any rule in them at all, then take
  2224. it from there.
  2225.   For example, you can write a macro to log where a crash occured,
  2226. register state, and the stack call-chain, then put it in the prefs to make
  2227. it permanent. e.g.:
  2228.  
  2229.   mc myMacroName 'log myPathName; WH; TD; SC; log'
  2230.  
  2231. You may also want to have traps recording on, then play it back (ATP) into
  2232. the log.
  2233.  
  2234. There's a way of making a macro execute each time the debugger is
  2235. dropped into, but the manual's back home + I can't remember exactly
  2236. how (but I guess it would be some messing with the prefs file).
  2237.  
  2238. I guess that's it 4 now. Hope this helps.
  2239.  
  2240. -- 
  2241.                         _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
  2242.                        _/          Yoram Ney           _/
  2243.                       _/   yoram_n@netvision.net.il   _/
  2244.                      _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
  2245.  
  2246. +++++++++++++++++++++++++++
  2247.  
  2248. >From "Thomas L. Ferrell" <ferrelltl@ornl.gov>
  2249. Date: 22 Sep 1996 05:46:31 GMT
  2250. Organization: Oak Ridge National Lab
  2251.  
  2252. Reposting article removed by rogue canceller.
  2253.  
  2254. pthomann@ripco.com (Paul Thomann) wrote:
  2255. >Since the 7200/90 I use freezes up far more often than I'd like.  I was
  2256. >wondering whether trying to hone in on the problem app's (or memory
  2257. >locations) would be something appropriate to do with Macsbug.  And if >so is there a good reference book about how to use Macsbug? =
  2258.  Many >thanks in advance.
  2259. >-- 
  2260. >pthomann@ripco.com         |   You can never have to much
  2261. >Chicago, USA               |   shelving or closet space.
  2262.  
  2263.  
  2264. Hi, You should first try some easier things. Upgrade to 7.5.5 if you haven't done so. Zap your PRAM 3-4 times. Use Extensions Manage=
  2265. r to turn off half your non-essential extensions, reboot and see if the problem persists. If not, you have an extension conflict in =
  2266. the remaining half. Turn on half of these, reboot and so on. Have you rebuilt your desktop in the past few months? If the above is n=
  2267. o help, then try to see what things are most suspect and use Macsbug as a last resort. You can get info at
  2268. http://www.scruz.net/~crawford/Computers/macsbug.html
  2269. Good Luck,
  2270. tom
  2271.  
  2272.  
  2273. +++++++++++++++++++++++++++
  2274.  
  2275. >From david@interport.net (David)
  2276. Date: 22 Sep 1996 01:26:40 -0400
  2277. Organization: Interport Communications Corp.
  2278.  
  2279. Reposting article removed by rogue canceller.
  2280.  
  2281. Paul Thomann (pthomann@ripco.com) wrote:
  2282. : Since the 7200/90 I use freezes up far more often than I'd like.  I was
  2283. : wondering whether trying to hone in on the problem app's (or memory
  2284. : locations) would be something appropriate to do with Macsbug.  And if so
  2285.  
  2286. I don't think MB will be of much use to you here; if it's an application,
  2287. you should be able to tell when it crashes; if it's an extension or system
  2288. problem, diagnosing it with MB will require a very thorough knowledge of
  2289. Mac assembly. 
  2290.  
  2291. I'd recommend Cassady&Greene's Conflict Catcher software. If you really
  2292. have some reproducible evil in your combination of software, it will be
  2293. able to figure it out.
  2294.  
  2295. Apple has a little text file with MB, I believe, which describes the
  2296. basics. Just for the es (quit current app) and rs (restart) commands,
  2297. everyone should have it installed. But using it seriously is basically a
  2298. propellorhead thing.
  2299.  
  2300. David |-:)
  2301.  
  2302. ---------------------------
  2303.  
  2304. >From kirill@lava.net (Kirill)
  2305. Subject: Opening Control Panel
  2306. Date: Mon, 16 Sep 1996 00:47:25 -1000
  2307. Organization: LavaNet, Inc.
  2308.  
  2309. I would like to open a control panel from my application. I have an FSSpec
  2310. for the control panel. I have tried LaunchApplication() but that did not
  2311. work (which, sadly, makes sense). I've also tried sending 'odoc' and
  2312. 'oapp' AppleEvents to the Finder, all to no avail.
  2313.  
  2314. Can anyone point me to some code that does this or offer a simple
  2315. solution? Thanks in advance.
  2316.  
  2317. -- kirill
  2318.  
  2319. +++++++++++++++++++++++++++
  2320.  
  2321. >From Eric Shieh <erics@edify.com>
  2322. Date: Tue, 17 Sep 1996 12:52:30 -0700
  2323. Organization: Edify Corporation
  2324.  
  2325. Kirill wrote:
  2326. > I would like to open a control panel from my application. I have an FSSpec
  2327. > for the control panel. I have tried LaunchApplication() but that did not
  2328. > work (which, sadly, makes sense). I've also tried sending 'odoc' and
  2329. > 'oapp' AppleEvents to the Finder, all to no avail.
  2330. The Finder doesn't take ODOC events. Instead, it takes OpenSelection
  2331. events. You create the appleevent, stick on an alias/FSSpec to a
  2332. folder containing the items to be opened (in this case the control
  2333. panels folder) and then stick on the list of items to be opened.
  2334.  
  2335.  
  2336. Eric
  2337.  
  2338. +++++++++++++++++++++++++++
  2339.  
  2340. >From jonpugh@netcom.com (Jon Pugh)
  2341. Date: Sun, 22 Sep 1996 05:18:44 GMT
  2342. Organization: Will hack for food
  2343.  
  2344. Kirill (kirill@lava.net) wrote:
  2345. > I would like to open a control panel from my application. I have an FSSpec
  2346. > for the control panel. I have tried LaunchApplication() but that did not
  2347. > work (which, sadly, makes sense). I've also tried sending 'odoc' and
  2348. > 'oapp' AppleEvents to the Finder, all to no avail.
  2349.  
  2350. Check out the Apple sample code pages.  There's at least 2 samples on the 
  2351. IAC page alone.
  2352.  
  2353. http://devworld.apple.com/dev/techsupport/source/code/Snippets/IAC.html
  2354.  
  2355. Jon
  2356.  
  2357. +++++++++++++++++++++++++++
  2358.  
  2359. >From jonpugh@netcom.com (Jon Pugh)
  2360. Date: Sun, 22 Sep 1996 05:18:44 GMT
  2361. Organization: Will hack for food
  2362.  
  2363. Reposting article removed by rogue canceller.
  2364.  
  2365. Kirill (kirill@lava.net) wrote:
  2366. > I would like to open a control panel from my application. I have an FSSpec
  2367. > for the control panel. I have tried LaunchApplication() but that did not
  2368. > work (which, sadly, makes sense). I've also tried sending 'odoc' and
  2369. > 'oapp' AppleEvents to the Finder, all to no avail.
  2370.  
  2371. Check out the Apple sample code pages.  There's at least 2 samples on the 
  2372. IAC page alone.
  2373.  
  2374. http://devworld.apple.com/dev/techsupport/source/code/Snippets/IAC.html
  2375.  
  2376. Jon
  2377.  
  2378. ---------------------------
  2379.  
  2380. >From feltmate@nb.net (Michael A Feltmate)
  2381. Subject: Pascal compiler
  2382. Date: Mon, 23 Sep 1996 22:37:36 -0400
  2383. Organization: Feltmate Family
  2384.  
  2385. Does anybody know of a good cheap pascal compiler?  (preferably shareware
  2386. or freeware)  Please reply.  Thanx!!!
  2387.  
  2388. +++++++++++++++++++++++++++
  2389.  
  2390. >From Online@MacTech.com ( nick.c @MT )
  2391. Date: Tue, 24 Sep 1996 22:42:00 -0800
  2392. Organization: MacTech Magazine
  2393.  
  2394.  
  2395. feltmate@nb.net (Michael A Feltmate) wrote:
  2396.  
  2397. >Does anybody know of a good cheap pascal compiler?  (preferably shareware
  2398. >or freeware)  Please reply.  Thanx!!!
  2399.  
  2400.  
  2401.    Dunno 'bout shareware of freeware--but MW Pascal (part of the CW
  2402.      package) and Symantec's Think Pascal are good deals.  You can
  2403.      probably pick up a license for an old copy of Think Pascal 
  2404.      in the 'forsale' groups for $30 or so....
  2405.  
  2406. ____Nicholas C. DeMello, Ph.D.________________________________________
  2407.  
  2408.   Online for MacTech Magazine, the Journal of Macintosh Programming
  2409.      http://www.MacTech.com/
  2410.                                        _/   _/  _/  _/_/_/   _/   _/  
  2411.   Chemistry: Nick@chem.UCLA.edu       _/_/ _/  _/  _/   _/  _/_/_/ 
  2412.     MacTech: Online@MacTech.com      _/ _/_/  _/  _/       _/ _/    
  2413.        http://www.chem.ucla.edu/~nick/   _/  _/   _/_/_/  _/   _/     
  2414.  
  2415. +++++++++++++++++++++++++++
  2416.  
  2417. >From Online@MacTech.com ( nick.c @MT )
  2418. Date: Tue, 24 Sep 1996 22:42:00 -0800
  2419. Organization: MacTech Magazine
  2420.  
  2421.  
  2422. feltmate@nb.net (Michael A Feltmate) wrote:
  2423.  
  2424. >Does anybody know of a good cheap pascal compiler?  (preferably shareware
  2425. >or freeware)  Please reply.  Thanx!!!
  2426.  
  2427.  
  2428.    Dunno 'bout shareware of freeware--but MW Pascal (part of the CW
  2429.      package) and Symantec's Think Pascal are good deals.  You can
  2430.      probably pick up a license for an old copy of Think Pascal 
  2431.      in the 'forsale' groups for $30 or so....
  2432.  
  2433. ____Nicholas C. DeMello, Ph.D.________________________________________
  2434.  
  2435.   Online for MacTech Magazine, the Journal of Macintosh Programming
  2436.      http://www.MacTech.com/
  2437.                                        _/   _/  _/  _/_/_/   _/   _/  
  2438.   Chemistry: Nick@chem.UCLA.edu       _/_/ _/  _/  _/   _/  _/_/_/ 
  2439.     MacTech: Online@MacTech.com      _/ _/_/  _/  _/       _/ _/    
  2440.        http://www.chem.ucla.edu/~nick/   _/  _/   _/_/_/  _/   _/     
  2441.  
  2442. ---------------------------
  2443.  
  2444. >From Greg Hale <glink@fireball.blast.net>
  2445. Subject: Picture Help!
  2446. Date: Sat, 21 Sep 1996 18:46:59 GMT
  2447. Organization: Home
  2448.  
  2449. In C, how do you display a PICT in a window?  I asked someone before and 
  2450. they said to use DrawPicture() and I tried that but I can't figure out 
  2451. what to put in the ()'s.
  2452. Thanx in advance
  2453. --Greg Hale
  2454.  
  2455. +++++++++++++++++++++++++++
  2456.  
  2457. >From Russ Hendy <Russ@tui.co.uk>
  2458. Date: Mon, 23 Sep 1996 12:24:40 +0000
  2459. Organization: tui interactive media
  2460.  
  2461. Greg - 
  2462.  
  2463. Well, if you're drawing a PICT that's a Resource, do this :
  2464.  
  2465. #include <QuickDraw.h>
  2466.  
  2467. void
  2468. DrawPICTFromResource(ResIDT inResourceID, int x, int y)
  2469. {
  2470.     Rect        pictureBounds;
  2471.     PicHandle    hPic;
  2472.  
  2473.     hPic = ::GetPicture(inResourceID);
  2474.  
  2475.  
  2476.     if(hPic) {
  2477.  
  2478.         // set the rect to the same as that of the picture. You can
  2479.         // scale here if you like
  2480.         pictureBounds = (*hPic)->picFrame;
  2481.  
  2482.         ::DrawPicture(hPic, &pictureBounds);
  2483.  
  2484.     }
  2485.  
  2486.     // don't forget to lose that memory
  2487.     ::ReleaseResource((Handle) hPic);
  2488.  
  2489.  
  2490.  
  2491. I think that's about right. If you want to draw from a file, use the
  2492. DrawPictureFile() function.
  2493.  
  2494. Best Regards,
  2495. Russ.
  2496.  
  2497. ---------------------------
  2498.  
  2499. >From "Ala'a H. Jawad" <aljawad@kuwait.net>
  2500. Subject: Q: Inside Macintosh CD-ROM
  2501. Date: Sat, 21 Sep 1996 00:24:01 +0400
  2502. Organization: Jupiter and Beyond the Infinite
  2503.  
  2504. Good Day!
  2505.  
  2506. Is the "Inside Macintosh" series available on CD-ROM? 
  2507.  
  2508. TIA :-)
  2509.  
  2510.  
  2511.  
  2512. Best regards,
  2513. -A l a ' a
  2514.  
  2515. +++++++++++++++++++++++++++
  2516.  
  2517. >From bishopsys@aol.com (Matt Bishop)
  2518. Date: Sat, 21 Sep 1996 01:32:01 -0500
  2519. Organization: Bishop Shareware
  2520.  
  2521. In article <3242FD61.4A1@kuwait.net>, aljawad@kuwait.net wrote:
  2522.  
  2523. > Good Day!
  2524. > Is the "Inside Macintosh" series available on CD-ROM? 
  2525. > TIA :-)
  2526.  
  2527. The MacTech CD ROM is useful for me.  It has all the managers/function
  2528. calls in a very fast search engine that is hyperlinked all over the
  2529. place.  It has saved me days of time searching for answers to questions or
  2530. prototypes for toolbox calls.
  2531.  
  2532. It also has every issue for the past 11 years of MacTech magazine,
  2533. searchable by topic/date/author/etc.  It is worth every penny!
  2534.  
  2535. -Matt
  2536.  
  2537. +++++++++++++++++++++++++++
  2538.  
  2539. >From gregj@europa.com (Greg Jorgensen)
  2540. Date: Mon, 23 Sep 1996 01:28:40 -0800
  2541. Organization: Europa Communications, Inc, Portland Oregon USA
  2542.  
  2543. In article <3242FD61.4A1@kuwait.net>, aljawad@kuwait.net wrote:
  2544.  
  2545. >Good Day!
  2546. >
  2547. >Is the "Inside Macintosh" series available on CD-ROM? 
  2548.  
  2549. Yes, it's published by Addison-Wesley, and costs about $100. You can buy
  2550. it from the usual places or any bookstore. Computer Literacy Books
  2551. (www.clbooks.com) should have it in stock.
  2552.  
  2553. -- 
  2554. Greg Jorgensen - Portland, Oregon, USA - gregj@europa.com
  2555.  
  2556. "I tell you, we are here on Earth to fart around, and don't let anyone tell you any different." -- Kurt Vonnegut
  2557.  
  2558. +++++++++++++++++++++++++++
  2559.  
  2560. >From nick@chem.ucla.edu ( nick.c @MT )
  2561. Date: Mon, 23 Sep 1996 12:22:06 -0800
  2562. Organization: MacTech Magazine
  2563.  
  2564.  
  2565. bishopsys@aol.com (Matt Bishop) wrote:
  2566.  
  2567. >aljawad@kuwait.net wrote:
  2568. >
  2569. >> Good Day!
  2570. >> 
  2571. >> Is the "Inside Macintosh" series available on CD-ROM? 
  2572. >> 
  2573. >> TIA :-)
  2574. >
  2575. >The MacTech CD ROM is useful for me.  It has all the managers/function
  2576. >calls in a very fast search engine that is hyperlinked all over the
  2577. >place.  It has saved me days of time searching for answers to questions or
  2578. >prototypes for toolbox calls.
  2579. >
  2580. >It also has every issue for the past 11 years of MacTech magazine,
  2581. >searchable by topic/date/author/etc.  It is worth every penny!
  2582.  
  2583.  
  2584.    
  2585.      The MacTech CD is very kool and it's a superset of Think Reference
  2586.         using the Think Reference engine to access all the toolbox
  2587.         functions included in the TR data bases as well as the
  2588.         MT journal articles for a more detailed discussion.  I'm
  2589.         kind of biased--but I tend to agree with Matt that it's
  2590.         worth every penny.  More details on it are available at:
  2591.        
  2592.               <http://web.xplain.com/mactech.com/cdrom/>
  2593.  
  2594.      But to answer your original question: Yes the NIM is available
  2595.        on CD Rom--it's also DL'able from Apple's Web site.  NIM
  2596.        is useful for a different reason that the MacTech CD (IMHO).
  2597.        The MT CD gives you a brief overview of syntax and usage of
  2598.        toolbox functions (as well as examples), and the articles
  2599.        give you more detailed discussion of concepts.  But NIM gives
  2600.        you exhaustive detail on the functions.  Sometimes you need
  2601.        that, and it's useful to have access to the NIM.
  2602.  
  2603. ____Nicholas C. DeMello, Ph.D.________________________________________
  2604.  
  2605.   Online for MacTech Magazine, the Journal of Macintosh Programming
  2606.      http://www.MacTech.com/
  2607.                                        _/   _/  _/  _/_/_/   _/   _/  
  2608.   Chemistry: Nick@chem.UCLA.edu       _/_/ _/  _/  _/   _/  _/_/_/ 
  2609.     MacTech: Online@MacTech.com      _/ _/_/  _/  _/       _/ _/    
  2610.        http://www.chem.ucla.edu/~nick/   _/  _/   _/_/_/  _/   _/     
  2611.  
  2612. +++++++++++++++++++++++++++
  2613.  
  2614. >From "Thomas L. Ferrell" <ferrelltl@ornl.gov>
  2615. Date: 21 Sep 1996 00:41:09 GMT
  2616. Organization: Oak Ridge National Lab
  2617.  
  2618. Reposting article removed by rogue canceller.
  2619.  
  2620. "Ala'a H. Jawad" <aljawad@kuwait.net> wrote:
  2621. >Good Day!
  2622. >
  2623. >Is the "Inside Macintosh" series available on CD-ROM? 
  2624. >
  2625. >TIA :-)
  2626.  
  2627. >Best regards,
  2628. >-A l a ' a
  2629.  
  2630. Yes. Go to <http://www.devworld.apple.com/> and check out their products 
  2631. for developers. I find it handy to also have at least a few of the books 
  2632. in hardcopy. You might also check out comp.sys.mac.wanted to look for 
  2633. used stuff,but be careful not to get outdated material unless you 
  2634. expressly need it. tom
  2635.  
  2636.  
  2637.  
  2638. ---------------------------
  2639.  
  2640. >From Grayson Muir <grayson@xmission.com>
  2641. Subject: QuickDrawGX's future...
  2642. Date: Fri, 13 Sep 1996 22:17:46 -0600
  2643. Organization: XMission Internet (801 539 0900)
  2644.  
  2645. What are Apple's plans for QuickDrawGX now that they have scrapped
  2646. Copland(OS 8) in favor of incremental upgrades. I thought Copland was
  2647. supposed to totally rely on QuickDrawGX. What a wonderful technology,
  2648. it's a shame to see it whither away(I hope not).
  2649. -- 
  2650. Grayson Muir <grayson@xmission.com>
  2651. http://www.xmission.com/~grayson/TheLostBoys/TheLostBoys.html
  2652.  
  2653.  
  2654. +++++++++++++++++++++++++++
  2655.  
  2656. >From dke@adnc.com (David Every)
  2657. Date: Fri, 13 Sep 1996 23:12:16 -0800
  2658. Organization: adnc.com
  2659.  
  2660. In article <323A31E7.7231@xmission.com>, grayson@xmission.com wrote:
  2661.  
  2662. | What are Apple's plans for QuickDrawGX now that they have scrapped
  2663. | Copland(OS 8) in favor of incremental upgrades. I thought Copland was
  2664. | supposed to totally rely on QuickDrawGX. What a wonderful technology,
  2665. | it's a shame to see it whither away(I hope not).
  2666.  
  2667. Rumor is that they have a DLL version of GX that you will be able to
  2668. bundle with your Apps individually - though it will likely be installed as
  2669. part of the system.
  2670.  
  2671. There are also some advocates for Apple to include it with their QuickTime
  2672. engine - or to include it as a cross platform graphics rendering engine
  2673. for internet. 
  2674.  
  2675. The newer GX is smaller, faster, and feeds the pets ;-)
  2676. --
  2677. David K. Every 
  2678. MacKiDo Warrior - The Power of the Macintosh Way!
  2679. --
  2680. ©1996 DKE. Non-exclusive, royalty free license to distribute is granted to any service provider except Microsoft. By distributing this, Microsoft agrees to pay $1,000 per posting.
  2681.  
  2682. +++++++++++++++++++++++++++
  2683.  
  2684. >From "Lawson English" <english@primenet.com>
  2685. Date: 14 Sep 1996 00:01:03 -0700
  2686. Organization: Primenet Services for the Internet
  2687.  
  2688. >What are Apple's plans for QuickDrawGX now that they have scrapped
  2689. >Copland(OS 8) in favor of incremental upgrades. I thought Copland was
  2690. >supposed to totally rely on QuickDrawGX. What a wonderful technology,
  2691. >it's a shame to see it whither away(I hope not).
  2692.  
  2693. Check out the Electrifier plug-in at http://www.electrifier.com
  2694.  
  2695. some of us are hoping that Apple will commit to sharing GX with the rest of
  2696. the world as a new paradigm for Internet graphics that I've nick-named
  2697. "Apple Internet Graphics."
  2698.  
  2699. A.I.G. ala Electrifier allows for extremely sophisticated graphics that
  2700. download in as little as 1% of the time that the equivalent using standard
  2701. bit-mapped graphics would take.
  2702.  
  2703. A.I.G. could use a file format that would replace HTML and allow
  2704. professional-level DTP to take place on the Internet.
  2705.  
  2706. A.I.G., with a trivial extension to what GX already offers, could allow for
  2707. animated fonts, shapes, textures, etc., that wouldn't take but a second or
  2708. so longer to download than their static equivalent (you'd just embed a
  2709. script/Java applet in the shape that would execute during idle time in the
  2710. browser).
  2711.  
  2712. A.I.G. would allow shapes/texts/plug-ins to *talk* to each other and allow
  2713. user interaction as well.
  2714.  
  2715. A.I.G. could become the alternative high-end standard for Java.
  2716.  
  2717. A.I.G. has generated lots of public flames and lots of private kudos for
  2718. moi on the semper.fi mailing list.
  2719.  
  2720. A.I.G. may or may not happen. I understand that all the Apple bigwigs have
  2721. debated the idea since I first introduced it (actually, I suspect that they
  2722. came up with it on their own some time ago but that internal politics
  2723. pretty much killed it until I got noisy).
  2724.  
  2725. A.I.G., if done right, would be the most spectacular marketing action ever
  2726. done by Apple: it would automatically make it a *Major* player on the
  2727. Internet.
  2728.  
  2729.  
  2730.  
  2731.  
  2732. - -------------------------------------------------
  2733. This message was created and sent using the Cyberdog Mail System
  2734. - -------------------------------------------------
  2735.  
  2736.  
  2737.  
  2738.  
  2739. +++++++++++++++++++++++++++
  2740.  
  2741. >From Grayson Muir <grayson@xmission.com>
  2742. Date: Sat, 14 Sep 1996 04:23:10 -0600
  2743. Organization: XMission Internet (801 539 0900)
  2744.  
  2745. Yes!!! All hail A.I.G! It sounds mind-blowingly fantastic. Apple could
  2746. dominate like never before with this technology under their belt, that
  2747. is unless they failed to promote it adequately as they've done with all
  2748. of their other superior technology(even QuickTime which won by default).
  2749. -- 
  2750. Grayson Muir <grayson@xmission.com>
  2751. http://www.xmission.com/~grayson/TheLostBoys/TheLostBoys.html
  2752.  
  2753.  
  2754. +++++++++++++++++++++++++++
  2755.  
  2756. >From "Lawson English" <english@primenet.com>
  2757. Date: 14 Sep 1996 22:56:02 -0700
  2758. Organization: Primenet Services for the Internet
  2759.  
  2760.  
  2761. --Cyberdog-AltBoundary-00037B8D
  2762. Content-Type: text/plain; charset=ISO-8859-1
  2763. Content-Transfer-Encoding: quoted-printable
  2764.  
  2765. >that
  2766. >is unless they failed to promote it adequately as they've done with
  2767. all
  2768. >of their other superior technology(even QuickTime which won by
  2769. default).
  2770.  
  2771. And thereby hangs the tale, eh?
  2772.  
  2773.  
  2774. - -------------------------------------------------
  2775. This message was created and sent using the Cyberdog Mail System
  2776. - -------------------------------------------------
  2777.  
  2778.  
  2779.  
  2780. --Cyberdog-AltBoundary-00037B8D
  2781. Content-Type: multipart/mixed; boundary="Cyberdog-MixedBoundary-00037B8D"
  2782. Content-Transfer-Encoding: 7bit
  2783.  
  2784.  
  2785. --Cyberdog-MixedBoundary-00037B8D
  2786. Content-Type: text/enriched; charset=ISO-8859-1
  2787. Content-Transfer-Encoding: quoted-printable
  2788.  
  2789. <SMALLER><SMALLER><X-FONTSIZE><PARAM>9</PARAM><FIXED><FONTFAMILY><PARAM=
  2790. >Monaco</PARAM>>that
  2791.  
  2792. >is unless they failed to promote it adequately as they've done with
  2793. all
  2794.  
  2795. >of their other superior technology(even QuickTime which won by
  2796. default).</FONTFAMILY></FIXED></X-FONTSIZE></SMALLER></SMALLER><SMALLER=
  2797. ><X-FONTSIZE><PARAM>10</PARAM><FONTFAMILY><PARAM>Geneva</PARAM>
  2798.  
  2799.  
  2800. And thereby hangs the tale, eh?
  2801.  
  2802.  
  2803.  
  2804. - -------------------------------------------------
  2805.  
  2806. This message was created and sent using the Cyberdog Mail System
  2807.  
  2808. - -------------------------------------------------
  2809.  
  2810. </FONTFAMILY></X-FONTSIZE></SMALLER>
  2811. --Cyberdog-MixedBoundary-00037B8D--
  2812.  
  2813. --Cyberdog-AltBoundary-00037B8D--
  2814.  
  2815.  
  2816. +++++++++++++++++++++++++++
  2817.  
  2818. >From jonathan@illuminata.com (Jonathan Eunice)
  2819. Date: Mon, 16 Sep 1996 10:48:10 -0400
  2820. Organization: Illuminata, Inc.
  2821.  
  2822. Lawson English <english@primenet.com> wrote:
  2823.  
  2824. > >is unless they failed to promote it adequately as they've done with all
  2825. > >of their other superior technology(even QuickTime which won by default).
  2826. > And thereby hangs the tale, eh?
  2827.  
  2828. Something like that.  
  2829.  
  2830. Can a format be successful on the Internet/intranet when <10% of the
  2831. clients extant can use the format?  Probably not, because few will find
  2832. it rewarding to develop tools for, or create content for, that format.
  2833. Apple is not the most credible or eager provider of cross-platform
  2834. software.  Should it even try to be?  If GX were completely unique in
  2835. its capabilities, with nothing similar on the horizon, that would be one
  2836. thing.  But GX faces a tough competitor as Adobe drives its imaging
  2837. model into browser technology ("Bravo").  Finally, what about the
  2838. business case?  If Apple were to spend the time and money to make
  2839. QuickDraw GX a cross-platform module (which it could certainly do, akin
  2840. to QuickTime), would this materially improve revenue or profitability?
  2841. Probably not.
  2842.  
  2843. The problem with many Apple technologies, GX included, is that while
  2844. wonderful on their own, they seem crafted in a vacuum, without reference
  2845. to what other companies are doing.  Designing with a "build a neato
  2846. capability and they will come" mentality, Apple is left with a whole
  2847. grab-bag of technologies, many of which partially overlap products with
  2848. a better shot at life, and most of which are insufficiently compelling
  2849. to marshall broad development resources.
  2850.  
  2851. If you buy this line of reasoning--mac.advocates.who.never.say.die, of
  2852. course, will not--the problem is worse than poor marketing.  It's poor
  2853. economics.  Thereby hangs the tale. 
  2854.  
  2855.  
  2856. -- 
  2857. Jonathan Eunice
  2858. Analyst, client/SERVER Companion
  2859.  
  2860. +++++++++++++++++++++++++++
  2861.  
  2862. >From "Lawson English" <english@primenet.com>
  2863. Date: 17 Sep 1996 13:21:00 -0700
  2864. Organization: Primenet Services for the Internet
  2865.  
  2866. Jonathan Eunice <jonathan@illuminata.com> said:
  2867.  
  2868. >Can a format be successful on the Internet/intranet when <10% of the
  2869. >clients extant can use the format?  Probably not, because few will find
  2870. >it rewarding to develop tools for, or create content for, that format.
  2871.  
  2872.  
  2873. True, but *I* have been advocating that Apple make GX available for anyone
  2874. to use via an OpenDoc/Cyberdog (ODF?) combo: anyone that is willing to port
  2875. OpenDoc/Cyberdog(/ODF?) to their own OS can license GX for the price of
  2876. doing the port themselves. -this includes Microsoft, IBM, Sun, and any
  2877. Linux provider. If Apple does the port, they can license it as they do
  2878. other such services cross-platform.
  2879.  
  2880. >Apple is not the most credible or eager provider of cross-platform
  2881. >software.  Should it even try to be?  
  2882.  
  2883.  
  2884. Ever hear of QuickTime players? And yes, in the age of the platform-neutral
  2885. (at least until MS gets its way) Internet, Apple has to be a "most credible
  2886. or eager provider of cross-platform software" in order to survive.
  2887.  
  2888. If GX were completely unique in
  2889. >its capabilities, with nothing similar on the horizon, that would be one
  2890. >thing.  But GX faces a tough competitor as Adobe drives its imaging
  2891. >model into browser technology ("Bravo"). 
  2892.  
  2893. Bravo is based on the Illustrator/Acrobat engine. I suspect that it isn't
  2894. as pretty as GX, although of course, we haven't seen it yet, have we? GX
  2895. has 5 programmers manuals, including 2 that would be used by A.I.G.
  2896. programmers. They've been around for years. While the full engine used
  2897. internally by Adobe has been around for years, where's the shipping
  2898. products/plug-ins based on Bravo?
  2899.  
  2900. Go to http://www.electrifier.com for a plug-in AND a free middle-level
  2901. drawing tool to produce content for the plug-in using GX. I've checked
  2902. Adobe's site several times. Not only is there only one "major" paper (2-3
  2903. pages long) about Bravo at their site, but I've yet to see a time-table for
  2904. the release of any Bravo-based plug-ins and/or Bravo-producing editors.
  2905.  
  2906.  Finally, what about the
  2907. >business case?  If Apple were to spend the time and money to make
  2908. >QuickDraw GX a cross-platform module (which it could certainly do, akin
  2909. >to QuickTime), would this materially improve revenue or profitability?
  2910. >Probably not.
  2911. >
  2912.  
  2913.  
  2914. All these cross-platform solutions are *marketing* strategies. Both to the
  2915. end-user and to the developer. GX (AKA Apple Internet Graphics) made
  2916. cross-platform would be the same, only far more flamboyant than anything
  2917. that Apple or anyone else has done in the past.
  2918.  
  2919.  
  2920. >The problem with many Apple technologies, GX included, is that while
  2921. >wonderful on their own, they seem crafted in a vacuum, without reference
  2922. >to what other companies are doing.  Designing with a "build a neato
  2923. >capability and they will come" mentality, Apple is left with a whole
  2924. >grab-bag of technologies, many of which partially overlap products with
  2925. >a better shot at life, and most of which are insufficiently compelling
  2926. >to marshall broad development resources.
  2927.  
  2928. While there are pleny of technologies from Apple that sorta fit your
  2929. description, I'm not sure that GX is one of them. Afterall, GX will be the
  2930. core graphics model of MacOS8 and probably of System 7.8/9.
  2931.  
  2932. Also, consider: GX is object-based and designed to be easily extensible,
  2933. both by Apple and by 3rd-parties. One of my proposed extensions to GX for
  2934. A.I.G. use would be to allow scripting/applets/something to be embedded in
  2935. shapes which can run during "idle time" and allow client-based animation
  2936. without pain.
  2937.  
  2938. How do you embed a script within a shape or group of shapes using Bravo,
  2939. which uses the PostScript model and whose API we have yet to see, BTW.
  2940.  
  2941. I suspect that Adobe would have to create a HUGE amount of glue to
  2942. accomplish this task, which *I* can do *right now* with a trivial addition
  2943. to the GX programming API within my own app.
  2944.  
  2945. How do you allow shapes to respond to messages from other shapes or from
  2946. embedded plug-ins using a PostScript model?
  2947.  
  2948. The same extension that allows shapes to respond to idle-time messages can
  2949. be used to respond to messages from other shapes, plug-ins, "cosmic"
  2950. applets, and user input (mouse clicks, etc).
  2951.  
  2952. Care to rewrite the parser for Acrobat to accomplish this?
  2953.  
  2954. *I* can do this RIGHT NOW with GX because of the original design.
  2955.  
  2956.  
  2957. GX is FAR superior in every way that counts on the Internet compared to
  2958. what I understand Bravo to be.
  2959.  
  2960. For instance, Bravo is touted as allowing "light-weight" DTP applets. GX
  2961. would allow LightningDraw-level (a $200 package, I believe) applets to be
  2962. used with Java supplying the GUI glue and GX supplying the API since that
  2963. is the basic paradigm of LightningDraw or so I understand.
  2964.  
  2965. If you want to characterize LightningDraw as "lightweight," feel free.
  2966.  
  2967.  
  2968. GX, recast as a cross-platform "Apple Internet Graphics" API would be a
  2969. Very Good Thing for Apple.
  2970.  
  2971. I'm still hopeful that Apple recognizes this.
  2972.  
  2973.  
  2974. - -------------------------------------------------
  2975. This message was created and sent using the Cyberdog Mail System
  2976. - -------------------------------------------------
  2977.  
  2978.  
  2979.  
  2980.  
  2981. +++++++++++++++++++++++++++
  2982.  
  2983. >From mouser@zercom.net (Martin-Gilles Lavoie)
  2984. Date: 17 Sep 1996 15:40:38 GMT
  2985. Organization: Groupimage, inc.
  2986.  
  2987. In article <19960916104810195613@[205.164.85.14]>, jonathan@illuminata.com
  2988. (Jonathan Eunice) wrote:
  2989.  
  2990. > The problem with many Apple technologies, GX included, is that while
  2991. > wonderful on their own, they seem crafted in a vacuum, without reference
  2992. > to what other companies are doing.  Designing with a "build a neato
  2993. > capability and they will come" mentality, Apple is left with a whole
  2994. > grab-bag of technologies, many of which partially overlap products with
  2995. > a better shot at life, and most of which are insufficiently compelling
  2996. > to marshall broad development resources.
  2997.  
  2998. Apparently, QD GX has been compiled for NT (with complete success I dont
  2999. know--but I did read Apple was/is trying to acheive this).  I dont think
  3000. there's a definite product plan, but this QX NT "test" must mean
  3001. something.
  3002.  
  3003. Are we about to see a GX Raster Image Processor?
  3004.  
  3005. -- 
  3006. Martin-Gilles Lavoie
  3007. "The only trinary-state binary system known to live"
  3008. [Develop issue 24, page 4]
  3009.  
  3010. +++++++++++++++++++++++++++
  3011.  
  3012. >From ldhelp@larisoftware.com (LightningDraw Technical Support)
  3013. Date: Tue, 24 Sep 1996 09:10:51 -0400
  3014. Organization: Lari Software Inc.
  3015.  
  3016. In article <mouser-1709961140520001@204.191.6.170>, mouser@zercom.net
  3017. (Martin-Gilles Lavoie) wrote:
  3018.  
  3019. > In article <19960916104810195613@[205.164.85.14]>, jonathan@illuminata.com
  3020. > (Jonathan Eunice) wrote:
  3021. >
  3022. > > The problem with many Apple technologies, GX included, is that while
  3023. > > wonderful on their own, they seem crafted in a vacuum, without reference
  3024. > > to what other companies are doing.  Designing with a "build a neato
  3025. > > capability and they will come" mentality, Apple is left with a whole
  3026. > > grab-bag of technologies, many of which partially overlap products with
  3027. > > a better shot at life, and most of which are insufficiently compelling
  3028. > > to marshall broad development resources.
  3029. > Apparently, QD GX has been compiled for NT (with complete success I dont
  3030. > know--but I did read Apple was/is trying to acheive this).  I dont think
  3031. > there's a definite product plan, but this QX NT "test" must mean
  3032. > something.
  3033. > Are we about to see a GX Raster Image Processor?
  3034.  
  3035. Actaully, there is already a GX RIP out there.
  3036.  
  3037. Signalize!, from Dunaway Systems provides raster image processing with
  3038. stochastic halftoning and support for a wide range of document formats
  3039. --including QuickDraw GX Portable Digital Documents as well as the more
  3040. standard PostScript Level 2, TIFF, and JPEG -- in a PowerMac-hosted
  3041. application.
  3042.  
  3043. For more information, you can check out their press release at
  3044. <http://www.ixmedia.com/quickgx/pr/signalize.html>
  3045.  
  3046.  
  3047. Ta,
  3048.      -Stephen, not speaking for Lari Software at the moment
  3049.  
  3050. ---------------------------
  3051.  
  3052. >From k.m.g.m.vanderdrift@ams.chem.ruu.nl (Koen van der Drift)
  3053. Subject: REQ: Pascal source on line??
  3054. Date: Tue, 24 Sep 1996 11:09:40 +0200
  3055. Organization: Hardly before noon
  3056.  
  3057. Hi,
  3058.  
  3059. I am looking for an example of the Pascal code for a small to medium sized
  3060. program. I would like to look how a code is structured, and how all the
  3061. toolbox commands are implemented. A good example of what I mean is the
  3062. Newswatcher C-code which was put on the net by its author John Norstad.
  3063.  
  3064. any help appreciated,
  3065.  
  3066. - Koen.
  3067.  
  3068. +++++++++++++++++++++++++++
  3069.  
  3070. >From ingemar@lysator.liu.se (Ingemar Ragnemalm)
  3071. Date: 24 Sep 1996 14:24:04 GMT
  3072. Organization: (none)
  3073.  
  3074.  
  3075. k.m.g.m.vanderdrift@ams.chem.ruu.nl (Koen van der Drift) writes:
  3076.  
  3077. >I am looking for an example of the Pascal code for a small to medium sized
  3078. >program. I would like to look how a code is structured, and how all the
  3079. >toolbox commands are implemented. A good example of what I mean is the
  3080. >Newswatcher C-code which was put on the net by its author John Norstad.
  3081.  
  3082. Check out
  3083.  
  3084. http://users.aol.com/catambay/pascal.html
  3085. (Pascal Central, lots of good pointers to Pascal-related info.)
  3086.  
  3087. and
  3088.  
  3089. ftp://ftp.lysator.liu.se/pub/mac/source/.
  3090. (My source-code archive with plenty of small demos.)
  3091.  
  3092. --
  3093. - -
  3094. Ingemar Ragnemalm, PhD
  3095. Image processing, Mac shareware games
  3096. E-mail address: ingemar@isy.liu.se or ingemar@lysator.liu.se
  3097.  
  3098. ---------------------------
  3099.  
  3100. >From mschuett@inet.uni-c.dk (Mikael Schutt)
  3101. Subject: Really Basic Question
  3102. Date: Wed, 18 Sep 1996 16:46:39 +0200
  3103. Organization: News Server at UNI-C, Danish Computing Centre for Research and Education.
  3104.  
  3105. Hi!
  3106.  
  3107. Can anybody explain to me how I (in C) can make a struct of float arrays,
  3108. where the array size is dependent on other variabels? The code below does
  3109. not work, and I can't really figure out how to make it work. Later on,
  3110. I'll need to make the array sizes from a dialog, so I'm trying to
  3111. understand how to define a struct after main() has begun to execute. 
  3112.  
  3113.  
  3114. CODE:
  3115. - ---------
  3116.  
  3117. #include <stdio.h>
  3118. #include <stdlib.h>
  3119. #include <sound.h>
  3120. #include <SIOUX.h>
  3121. #include <ctype.h>
  3122. #include <string.h>
  3123. #include <unistd.h>
  3124.  
  3125. #define     kMaxX       16 
  3126. #define     kMaxY       16
  3127. #define     kStepSize   16
  3128. #define     kZVar       16
  3129. #define     kXYVar      16
  3130.  
  3131. int   gMaxX=kMaxX;           
  3132. int   gMaxY=kMaxY;           
  3133. int   gStepSize=kStepSize;      
  3134. int   gZVar=kZVar;           
  3135. int   gXYVar=kXYVar;            
  3136. int   gtheSize = (gMaxX * gMaxY);   /* Not Working - I wonder why? */
  3137.  
  3138. /***********************/
  3139. /* Struct Declarations */
  3140. /***********************/
  3141. struct XYZ
  3142. {
  3143.    float X[ gtheSize ];
  3144.    float Y[ gtheSize ];
  3145.    float Z[ gtheSize ];
  3146. };
  3147.  
  3148. - -----------
  3149. End CODE
  3150.  
  3151.  
  3152. These are the errors I get:
  3153.  
  3154. Error   : illegal constant expression
  3155. Gridmaker.c line 28   int gtheSize = (gMaxX * gMaxY);
  3156. Error   : illegal constant expression
  3157. Gridmaker.c line 35   float X[ gtheSize ];
  3158. Error   : illegal constant expression
  3159. Gridmaker.c line 36   float Y[ gtheSize ];
  3160. Error   : illegal constant expression
  3161. Gridmaker.c line 37   float Z[ gtheSize ];
  3162.  
  3163. I'm using Codewarrier 8 (68k) from Discover Programming on a PowerMac 7500.
  3164.  
  3165.  
  3166. Thanks a lot for any help!
  3167.  
  3168. Mikael Schutt, Denmark
  3169.  
  3170. PS: If you can be bothered to e-mail me your answer I'd be extra happy:)
  3171.  
  3172. mschuett@inet.uni-c.dk
  3173.  
  3174. +++++++++++++++++++++++++++
  3175.  
  3176. >From kuznetso@mit.edu (Eugene Kuznetsov)
  3177. Date: Wed, 18 Sep 1996 19:51:33 -0400
  3178. Organization: Massachvsetts Institvte of Technology
  3179.  
  3180. In article <mschuett-1809961646390001@arh172.ppp.uni-c.dk>,
  3181. mschuett@inet.uni-c.dk (Mikael Schutt) wrote:
  3182.  
  3183. > Can anybody explain to me how I (in C) can make a struct of float arrays,
  3184. > where the array size is dependent on other variabels? The code below does
  3185. > not work, and I can't really figure out how to make it work. Later on,
  3186. > I'll need to make the array sizes from a dialog, so I'm trying to
  3187. > understand how to define a struct after main() has begun to execute. 
  3188.  
  3189.    Mikael,
  3190.    
  3191.    You can't do it this way.  A C compiler must know how large an array is
  3192. at compile-time, because standard C arrays are not dynamic. However, there
  3193. is an easy way to get around this.  Something like the code below should
  3194. work, although I haven't even tried to compile it.  You can certainly use
  3195. "malloc" instead of the Mac's NewPtr call to allocate memory, if you
  3196. wanted cross-platform code.
  3197.    The C compiler basically interprets a[i] as (*(a+i)), so it does care
  3198. whether you're dealing with a static array or a dynamically allocated
  3199. chunk of memory.
  3200.    Hope this helps,
  3201.    
  3202.                                  Eugene Kuznetsov
  3203.                                  kuznetso@mit.edu
  3204.                                                                
  3205.  
  3206. struct XYZ
  3207. {
  3208.     float *X;
  3209.     float *Y;
  3210.     float *Z;
  3211. };
  3212.  
  3213. void main ()
  3214. {
  3215.    int x,y,z,i;
  3216.  
  3217.    GetSizesFromUser(&x,&y,&z);
  3218.    XYZ.X = NewPtr(x);
  3219.    XYZ.Y = NewPtr(y);
  3220.    XYZ.Z = NewPtr(z);
  3221.  
  3222.    for (i = 0; i < x; i++) {
  3223.       XYZ.X[i] = 0.5;
  3224.    }
  3225.  
  3226. }
  3227.  
  3228. +++++++++++++++++++++++++++
  3229.  
  3230. >From mmucker@airmail.net (Matthew Mucker)
  3231. Date: Tue, 24 Sep 1996 13:18:26 +0500
  3232. Organization: Internet America
  3233.  
  3234. In article <mschuett-1809961646390001@arh172.ppp.uni-c.dk>,
  3235. mschuett@inet.uni-c.dk (Mikael Schutt) wrote:
  3236.  
  3237. > Hi!
  3238. > Can anybody explain to me how I (in C) can make a struct of float arrays,
  3239. > where the array size is dependent on other variabels? The code below does
  3240. > not work, and I can't really figure out how to make it work. Later on,
  3241. > I'll need to make the array sizes from a dialog, so I'm trying to
  3242. > understand how to define a struct after main() has begun to execute. 
  3243.  
  3244.  
  3245. I believe this question may have been answered here recently.  Basically,
  3246. you can't.  The compiler needs to know the size of the array at compile
  3247. time so that it can allocate enough memory.
  3248.  
  3249. I'd suggest requesting memory from the Memory Manager as an alternative,
  3250. though I do not know how to do this personally.
  3251.  
  3252. Sorry for the 'wrong' answer.  Many a time I've wanted to size an array
  3253. based on other variables.  But it can't be done.  (although if you do
  3254. manage, please share your secret with the rest of us!)
  3255.  
  3256. -Matt
  3257.  
  3258. -- 
  3259. Life is 10% what happens to you, and 90% how you respond to what happens to you.
  3260.  
  3261. +++++++++++++++++++++++++++
  3262.  
  3263. >From pecora@zoltar.nrl.navy.mil (Louis M. Pecora)
  3264. Date: Tue, 24 Sep 1996 17:12:28 +0100
  3265. Organization: Naval Research Laboratory
  3266.  
  3267. In article <mmucker-2409961318260001@fw3-13.ppp.iadfw.net>,
  3268. mmucker@airmail.net (Matthew Mucker) wrote:
  3269.  
  3270. > In article <mschuett-1809961646390001@arh172.ppp.uni-c.dk>,
  3271. > mschuett@inet.uni-c.dk (Mikael Schutt) wrote:
  3272. > > Hi!
  3273. > > 
  3274. > > Can anybody explain to me how I (in C) can make a struct of float arrays,
  3275. > > where the array size is dependent on other variabels? The code below does
  3276. > > not work, and I can't really figure out how to make it work. Later on,
  3277. > > I'll need to make the array sizes from a dialog, so I'm trying to
  3278. > > understand how to define a struct after main() has begun to execute. 
  3279. > I believe this question may have been answered here recently.  Basically,
  3280. > you can't.  The compiler needs to know the size of the array at compile
  3281. > time so that it can allocate enough memory.
  3282.  
  3283. Right. 
  3284.  
  3285. - -------------------------------------------
  3286. Here's how you can do it to get float or double vectors and matrices:
  3287.  
  3288. #define real float
  3289. /* Or if you want double, uncomment the line below and comment the one above
  3290. #define real double
  3291. */
  3292.  
  3293. /* The routine FATAL_ERROR is one you can write to print out the warning
  3294. message and call exit(1) to terminate the program if there is a problem */
  3295.  
  3296. /* ---- Allocate a real vector --------------------------- */
  3297. real *VECTOR(long n)  {
  3298.    real *v;
  3299.    v=(real *)malloc((size_t) (n*sizeof(real)));
  3300.    if (!v)   {
  3301.       FATAL_ERROR("*VECTOR","  Allocation of memory for real array failed.");  }
  3302.    return v;
  3303. }
  3304.  
  3305. /* ---- Free a real vector ---------------------------------
  3306.    Remember, you MUST free memory when you are done with it.
  3307.    That means _before_ you exit a function that allocated the memory
  3308.    and you lose the pointer to it.  Then the memory is "tied up,"
  3309.    but unaccessible to you.  Bad news. */ 
  3310. void free_VECTOR(real *v)  {
  3311.    free((char*) v);
  3312. }
  3313.  
  3314. /* ---- Allocate a real matrix ------------------------------------ */
  3315. real **MATRIX(long nrow, long ncol)  {
  3316.    long i;
  3317.    real **m;
  3318.    /* allocate pointers to rows */
  3319.    m=(real **) malloc((size_t)(nrow*sizeof(real*)));
  3320.    if (!m) {
  3321.       FATAL_ERROR("**MATRIX","  Allocation of memory for rows of real
  3322. array failed.");  }
  3323.    /* allocate rows and set pointers to them */
  3324.    m[0]=(real *) malloc((size_t)(nrow*ncol*sizeof(real)));
  3325.    if (!m[0]) {
  3326.       FATAL_ERROR("**MATRIX","  Allocation of memory for cols of real
  3327. array failed.");  }
  3328.  
  3329.    for(i=1;i<nrow;i++) m[i]=m[i-1]+ncol;
  3330.  
  3331.    /* return pointer to array of pointers to rows */
  3332.    return m;
  3333. }
  3334. /* ---- Free a real matrix ---------------------------------*/ 
  3335. void free_MATRIX(real **m)  {
  3336.    free((char*) (m[0]));
  3337.    free((char*) (m));
  3338. }
  3339.  
  3340. - -------------------------------------------
  3341. Here's how you can do it to get integer vectors:
  3342.  
  3343.  
  3344. /*  ---- Allocate memory for int array --------------------------------------*/ 
  3345. int *iVECTOR(int n)  {
  3346.    int *ptr;
  3347.    ptr= (int *)malloc((size_t) (n*sizeof(int)));
  3348.    if (!ptr)  {
  3349.       FATAL_ERROR("*iVECTOR","  Allocation of memory for integer array
  3350. failed.");  }
  3351.    return ptr;
  3352. }
  3353.  
  3354. /*  ---- Free memory for int array ----------------------------------------*/ 
  3355. void free_iVECTOR(int* m)  {
  3356.    free((char*) m);
  3357. }
  3358.  
  3359.    -------------------------------------------------------
  3360. Typical usage:
  3361.  
  3362. /* A function that allocates a variable number of elements, calculates something
  3363. and then cleans up after itself. Remember to define real as float or
  3364. double, depending on which you want. */
  3365.  
  3366. real func(int n)  {
  3367.    int i;
  3368.    real *vec;
  3369.    real result;
  3370.  
  3371.    vec=VECTOR(n);  /* Make a 1D array of "reals", a vector */
  3372.  
  3373.    /* calculate some stuff here and get result...for example:  */
  3374.    result=0.0;
  3375.    for (i=0; i<n; i++)  {
  3376.       vec[i]=(real)(i*i);
  3377.       result +=vec[i]*vec[i];  }
  3378.  
  3379.    free_VECTOR(vec);  /* Free that memory. Very important before returning! */
  3380.    return result;
  3381. }
  3382.  
  3383. - ------------------------------------
  3384. I hope that helps (I did not see your original post, sorry).
  3385.  
  3386. -- 
  3387. Louis M. Pecora
  3388. pecora@zoltar.nrl.navy.mil
  3389.  == My views and opinions are not those of the U.S. Navy. ==
  3390.  
  3391. - ------------------------------------------------------------------
  3392. * Check out the home page for the 4th Experimental Chaos Conference! 
  3393.  
  3394.              http://natasha.umsl.edu/Exp_Chaos4
  3395. - -------------------------------------------------------------------
  3396.  
  3397. ---------------------------
  3398.  
  3399. >From "Jim Orcutt" <jim_orcutt@studio.disney.com>
  3400. Subject: Scripting Addition to check for PowerMac vs. 68K
  3401. Date: 20 Sep 1996 23:19:35 GMT
  3402. Organization: The Walt Disney Company
  3403.  
  3404. I am looking for a scripting addition for an AppleScript we use to update
  3405. in-house Mac applications.  In particular, I need a scripting addition that
  3406. can determine the difference between a PowerMac and a 68K Mac.  Seen
  3407. anything?  Thanks.
  3408.  
  3409. Virtually,
  3410. Jim
  3411.  
  3412. jim_orcutt@studio.disney.com
  3413.  
  3414. +++++++++++++++++++++++++++
  3415.  
  3416. >From jonpugh@netcom.com (Jon Pugh)
  3417. Date: Sun, 22 Sep 1996 05:56:26 GMT
  3418. Organization: Will hack for food
  3419.  
  3420. Jim Orcutt (jim_orcutt@studio.disney.com) wrote:
  3421. > I am looking for a scripting addition for an AppleScript we use to update
  3422. > in-house Mac applications.  In particular, I need a scripting addition that
  3423. > can determine the difference between a PowerMac and a 68K Mac.  Seen
  3424. > anything?  Thanks.
  3425.  
  3426. Jon's Commands.
  3427.  
  3428. http://www.infoworkshop.com/~jonpugh/
  3429.  
  3430. Jon
  3431.  
  3432. +++++++++++++++++++++++++++
  3433.  
  3434. >From jonpugh@netcom.com (Jon Pugh)
  3435. Date: Sun, 22 Sep 1996 05:56:26 GMT
  3436. Organization: Will hack for food
  3437.  
  3438. Reposting article removed by rogue canceller.
  3439.  
  3440. Jim Orcutt (jim_orcutt@studio.disney.com) wrote:
  3441. > I am looking for a scripting addition for an AppleScript we use to update
  3442. > in-house Mac applications.  In particular, I need a scripting addition that
  3443. > can determine the difference between a PowerMac and a 68K Mac.  Seen
  3444. > anything?  Thanks.
  3445.  
  3446. Jon's Commands.
  3447.  
  3448. http://www.infoworkshop.com/~jonpugh/
  3449.  
  3450. Jon
  3451.  
  3452. ---------------------------
  3453.  
  3454. >From jmerrima@ix.netcom.com (Jonathan Merriman)
  3455. Subject: Shareware Assembler
  3456. Date: Fri, 20 Sep 1996 16:27:18 -0700
  3457. Organization: Netcom
  3458.  
  3459. Know of any?
  3460.  
  3461. - -------------------------------------------------------------------
  3462. Jonathan Merriman            | Marathon Maniac Monthly
  3463. jmerrima@ix.netcom.com       | Mail me if you want to pre-order.
  3464. - -------------------------------------------------------------------
  3465. http://www.netcom.com/~jmerrima/
  3466. - -------------------------------------------------------------------
  3467.  
  3468. +++++++++++++++++++++++++++
  3469.  
  3470. >From jayfar@netaxs.com (Jay Farrell)
  3471. Date: Sat, 21 Sep 1996 10:49:43 -0400
  3472. Organization: Net Access - Philadelphia's Original ISP
  3473.  
  3474. In article <jmerrima-2009961627190001@spo-wa1-05.ix.netcom.com>,
  3475. jmerrima@ix.netcom.com (Jonathan Merriman) wrote:
  3476.  
  3477. > Know of any?
  3478.  
  3479. Fantasm is shareware.  I'm pretty sure it can produce both PPC & 68k code. 
  3480. I think you can find it in the dev directory at your friendly neighborhood
  3481. info-mac mirror.
  3482.  
  3483. Cheers,
  3484. Jayfar
  3485.  
  3486.    ////~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~////
  3487.   ////   The Mops Page    <URL:http://www.netaxs.com/~jayfar/mops.html>    ////
  3488.  ////~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~////
  3489. ////   Mops is Mike Hore's Freeware Forth/Smalltalk hybrid for Macintosh ////
  3490. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  3491.   Jay Farrell     jayfar@netaxs.com        Philadelphia, Pennsylvania, USA
  3492.  
  3493. +++++++++++++++++++++++++++
  3494.  
  3495. >From shield@sprynet.com (Garry Roseman)
  3496. Date: Mon, 23 Sep 1996 00:13:15 -0400
  3497. Organization: Writer & Freelance Programmer
  3498.  
  3499. Jay Farrell <jayfar@netaxs.com> wrote:
  3500.  
  3501. > In article <jmerrima-2009961627190001@spo-wa1-05.ix.netcom.com>,
  3502. > jmerrima@ix.netcom.com (Jonathan Merriman) wrote:
  3503. > > Know of any?
  3504. > Fantasm is shareware.  I'm pretty sure it can produce both PPC & 68k code.
  3505. > I think you can find it in the dev directory at your friendly neighborhood
  3506. > info-mac mirror.
  3507.  
  3508. PowerFantasm can generate 68K and PPC. Info is available on the
  3509. Lightsoft page:
  3510.  
  3511. Lightsoft's "The Programmers Dream": 
  3512.      http://www.tau.it/lightsoft
  3513.  
  3514. -- 
  3515.   Garry Roseman  <mailto:shield@sprynet.com>
  3516.   Writer & Freelance Programmer
  3517.   Memphis TN USA
  3518.  
  3519. +++++++++++++++++++++++++++
  3520.  
  3521. >From jayfar@netaxs.com (Jay Farrell)
  3522. Date: Sat, 21 Sep 1996 10:49:43 -0400
  3523. Organization: Net Access - Philadelphia's Original ISP
  3524.  
  3525. Reposting article removed by rogue canceller.
  3526.  
  3527. In article <jmerrima-2009961627190001@spo-wa1-05.ix.netcom.com>,
  3528. jmerrima@ix.netcom.com (Jonathan Merriman) wrote:
  3529.  
  3530. > Know of any?
  3531.  
  3532. Fantasm is shareware.  I'm pretty sure it can produce both PPC & 68k code. 
  3533. I think you can find it in the dev directory at your friendly neighborhood
  3534. info-mac mirror.
  3535.  
  3536. Cheers,
  3537. Jayfar
  3538.  
  3539.    ////~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~////
  3540.   ////   The Mops Page    <URL:http://www.netaxs.com/~jayfar/mops.html>    ////
  3541.  ////~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~////
  3542. ////   Mops is Mike Hore's Freeware Forth/Smalltalk hybrid for Macintosh ////
  3543. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  3544.   Jay Farrell     jayfar@netaxs.com        Philadelphia, Pennsylvania, USA
  3545.  
  3546. ---------------------------
  3547.  
  3548. >From Jason J Mullins <jasonm@mcqueen.com>
  3549. Subject: Smalltalk for CW?
  3550. Date: Mon, 23 Sep 1996 13:32:26 +0100
  3551. Organization: McQueen
  3552.  
  3553. Does anyone know of Smalltalk stuff for CW (9/10) or another
  3554. implementation which would be as good.
  3555.  
  3556. I am starting an OOP course using Smalltalk that is based on DOS
  3557. (?&@!!@@?!) so I -need- a better option (even if it means buying CW10 -
  3558. education of course!)
  3559.  
  3560. Thanks,
  3561.  
  3562. Jason
  3563.  
  3564. +++++++++++++++++++++++++++
  3565.  
  3566. >From mouser@zercom.net (Martin-Gilles Lavoie)
  3567. Date: 24 Sep 1996 19:57:59 GMT
  3568. Organization: Groupimage, inc.
  3569.  
  3570. In article <3246833B.1461@mcqueen.com>, jasonm@mcqueen.com wrote:
  3571.  
  3572. > Does anyone know of Smalltalk stuff for CW (9/10) or another
  3573. > implementation which would be as good.
  3574. > I am starting an OOP course using Smalltalk that is based on DOS
  3575. > (?&@!!@@?!) so I -need- a better option (even if it means buying CW10 -
  3576. > education of course!)
  3577.  
  3578. Smalltalk is not a language that is accessible from CodeWarrior.  Besides
  3579. the economics factor (engineering costs for MW would be greater than
  3580. revenus on this one), Smalltalk requires a very specialised "shell" which
  3581. acts more like a sub-Operating System than an IDE.
  3582.  
  3583. SmallTalk on the Mac is best acheived (so I'm told, since I've not used it
  3584. myself) through Quasar Knowledge Systems' SmallTalkAgents (info@qks.com,
  3585. 800 296-1339).  They probably have educational discounts (though I'm not
  3586. sure).
  3587.  
  3588. -- 
  3589. Martin-Gilles Lavoie
  3590. "The only trinary-state binary system known to live"
  3591. [Develop issue 24, page 4]
  3592.  
  3593. ---------------------------
  3594.  
  3595. >From rvien@dreamscape.com (Robert Vienneau)
  3596. Subject: Symantec, Mac, v8.x help requested
  3597. Date: 15 Sep 1996 16:52:30 GMT
  3598. Organization: Dreamscape Online
  3599.  
  3600. I have some questions about Symantec C++ for the Mac, version 8.x.
  3601.  
  3602. I am trying to write a simple Visual Architect application. I need to use
  3603. the CtoPstr function in Mac Headers. My program compiles correctly, but
  3604. the linker cannot find CtoPstr. What object files *.o do I need to
  3605. add to my project? More generally, how can I find what's in the various
  3606. object files so as to be able to answer questions like this by myself
  3607. in the future?
  3608.  
  3609. Does Symantec have an E-mail address for technical support questions
  3610. like this. I looked at their Web site
  3611.  
  3612.     http://www.symantec.com/servsupp/techsupp/techsupp.html
  3613.  
  3614. and it seems not.
  3615.  
  3616. Will respondents please e-mail me a copy since I rarely read these
  3617. newsgroup.
  3618.  
  3619. Thanks,
  3620.  
  3621. -- 
  3622. Robert Vienneau                   Try my Mac econ simulation game,            
  3623. rvien@future.dreamscape.com       Bukharin, at
  3624.      
  3625.   ftp://csf.colorado.edu/econ/authors/Vienneau.Robert/Bukharin.sea
  3626.  
  3627. Whether strength of body or of mind, or wisdom, or virtue, are always
  3628. found...in proportion to the power or wealth of a man [is] a question
  3629. fit perhaps to be discussed by slaves in the hearing of their
  3630. masters, but highly unbecoming to reasonable and free men in search
  3631. of the truth.                         -- Rousseau
  3632.  
  3633. +++++++++++++++++++++++++++
  3634.  
  3635. >From pkmagle@netins.net (Patricia Magle Jones)
  3636. Date: Sat, 21 Sep 1996 23:51:38 +0100
  3637. Organization: netINS, Inc.
  3638.  
  3639. In article <rvien-1509961257310001@ua4.dreamscape.com>,
  3640. rvien@dreamscape.com (Robert Vienneau) wrote:
  3641.  
  3642. > I have some questions about Symantec C++ for the Mac, version 8.x.
  3643. > I am trying to write a simple Visual Architect application. I need to use
  3644. > the CtoPstr function in Mac Headers. My program compiles correctly, but
  3645. > the linker cannot find CtoPstr. What object files *.o do I need to
  3646. > add to my project? 
  3647.  
  3648. I don't have your version, but an earlier one. It appears to me that
  3649. MacTraps contains the library you desire (I saw a CPstr.lib included in
  3650. it). I'm new to C++ but have done a lot with Symantec C, so I just did
  3651. a lot of Mac-ish point and clicking to find this info.
  3652.  
  3653. >More generally, how can I find what's in the various
  3654. > object files so as to be able to answer questions like this by myself
  3655. > in the future?
  3656.  
  3657. I was impressed when I played with this version to find that I could
  3658. do grep searches on the individual libraries like CPlusLib & ANSI++ after
  3659. double clicking them from the project window and opening a new window
  3660. for these. The search probably worked because the sources were identified.
  3661. Anyway I did this with the Bullseye++ Demo, but didn't find CtoPstr there 
  3662. and when I added  a simple use of it to the main program I got the 
  3663. link error as expected. Then I opened some other demos to try same.
  3664. When I came to the @1.pi project in ProjectModels/MacApplicationProjects 
  3665. folder I opened the project and when I double-clicked the MacTraps
  3666. entry I saw CPstr.lib. Unfortunately grep searching was inactive here
  3667. (not source entries) so I placed the CtoPstr call in the main program
  3668. and was able to link. So this is how I answered this question.
  3669.  
  3670. I should say that I began by opening Think Reference and searching for
  3671. CtoPstr and saw many entries in the guides. This did not help me but I
  3672. did look at the sample codes in each use example to see what .h files
  3673. were included for hints. None the less, you should have a copy of
  3674. Think Reference. I purchased mine separately... but I think Sym C++ may
  3675. include it.
  3676.  
  3677. An old trick I used with the first Think C environment to be able to
  3678. do grep searches in all the .h files was to create a project called 
  3679. AllDotH and included every .h file that I could find which came with
  3680. the system. The main program was a simple do nothing stub. It was 
  3681. great for finding which .h file a particular function was in and
  3682. hence which library was needed. Today however an ANSI lib is used
  3683. rather than many individual ones back then so this trick may not be
  3684. as useful now. Also, doing this in C++ may be unwieldy. And finally,
  3685. given my pleasant findings with SymC++  (i.e., being able to do
  3686. multi-file grep searches on the libraries) this old trick may be
  3687. obsolete. But I give it to you just the same... old trick have a
  3688. habit of being relevant or lead to flash insights toward new ones.
  3689.  
  3690. > Does Symantec have an E-mail address for technical support questions
  3691. > like this
  3692.  
  3693. I'm sure they do. My books are at the office so if you don't figure
  3694. this out then email me at jsjones@graceland.edu and I will look up 
  3695. a phone number. I start by looking at one of my Symantec Manuals to
  3696. find the tech support number. Often I get an old manual (it is usually
  3697. more prominent in those) and the number has likely changed... but it
  3698. is also as likely that I scratched in the new number so I probably have
  3699. it handy.
  3700.  
  3701. Regards,
  3702. Jim Jones
  3703.  
  3704. +++++++++++++++++++++++++++
  3705.  
  3706. >From pkmagle@netins.net (Patricia Magle Jones)
  3707. Date: Sat, 21 Sep 1996 23:51:38 +0100
  3708. Organization: netINS, Inc.
  3709.  
  3710. Reposting article removed by rogue canceller.
  3711.  
  3712. In article <rvien-1509961257310001@ua4.dreamscape.com>,
  3713. rvien@dreamscape.com (Robert Vienneau) wrote:
  3714.  
  3715. > I have some questions about Symantec C++ for the Mac, version 8.x.
  3716. > I am trying to write a simple Visual Architect application. I need to use
  3717. > the CtoPstr function in Mac Headers. My program compiles correctly, but
  3718. > the linker cannot find CtoPstr. What object files *.o do I need to
  3719. > add to my project? 
  3720.  
  3721. I don't have your version, but an earlier one. It appears to me that
  3722. MacTraps contains the library you desire (I saw a CPstr.lib included in
  3723. it). I'm new to C++ but have done a lot with Symantec C, so I just did
  3724. a lot of Mac-ish point and clicking to find this info.
  3725.  
  3726. >More generally, how can I find what's in the various
  3727. > object files so as to be able to answer questions like this by myself
  3728. > in the future?
  3729.  
  3730. I was impressed when I played with this version to find that I could
  3731. do grep searches on the individual libraries like CPlusLib & ANSI++ after
  3732. double clicking them from the project window and opening a new window
  3733. for these. The search probably worked because the sources were identified.
  3734. Anyway I did this with the Bullseye++ Demo, but didn't find CtoPstr there 
  3735. and when I added  a simple use of it to the main program I got the 
  3736. link error as expected. Then I opened some other demos to try same.
  3737. When I came to the @1.pi project in ProjectModels/MacApplicationProjects 
  3738. folder I opened the project and when I double-clicked the MacTraps
  3739. entry I saw CPstr.lib. Unfortunately grep searching was inactive here
  3740. (not source entries) so I placed the CtoPstr call in the main program
  3741. and was able to link. So this is how I answered this question.
  3742.  
  3743. I should say that I began by opening Think Reference and searching for
  3744. CtoPstr and saw many entries in the guides. This did not help me but I
  3745. did look at the sample codes in each use example to see what .h files
  3746. were included for hints. None the less, you should have a copy of
  3747. Think Reference. I purchased mine separately... but I think Sym C++ may
  3748. include it.
  3749.  
  3750. An old trick I used with the first Think C environment to be able to
  3751. do grep searches in all the .h files was to create a project called 
  3752. AllDotH and included every .h file that I could find which came with
  3753. the system. The main program was a simple do nothing stub. It was 
  3754. great for finding which .h file a particular function was in and
  3755. hence which library was needed. Today however an ANSI lib is used
  3756. rather than many individual ones back then so this trick may not be
  3757. as useful now. Also, doing this in C++ may be unwieldy. And finally,
  3758. given my pleasant findings with SymC++  (i.e., being able to do
  3759. multi-file grep searches on the libraries) this old trick may be
  3760. obsolete. But I give it to you just the same... old trick have a
  3761. habit of being relevant or lead to flash insights toward new ones.
  3762.  
  3763. > Does Symantec have an E-mail address for technical support questions
  3764. > like this
  3765.  
  3766. I'm sure they do. My books are at the office so if you don't figure
  3767. this out then email me at jsjones@graceland.edu and I will look up 
  3768. a phone number. I start by looking at one of my Symantec Manuals to
  3769. find the tech support number. Often I get an old manual (it is usually
  3770. more prominent in those) and the number has likely changed... but it
  3771. is also as likely that I scratched in the new number so I probably have
  3772. it handy.
  3773.  
  3774. Regards,
  3775. Jim Jones
  3776.  
  3777. +++++++++++++++++++++++++++
  3778.  
  3779. >From symscott@devtools.symantec.com (Symantec/Scott Morison)
  3780. Date: Tue, 24 Sep 1996 14:16:28 -0800
  3781. Organization: Symantec Corporation
  3782.  
  3783.  
  3784. Robert -
  3785.  
  3786. Sorry to be sending this response so late but I just noticed your post.
  3787.  
  3788. > I have some questions about Symantec C++ for the Mac, version 8.x.
  3789. > I am trying to write a simple Visual Architect application. I need to use
  3790. > the CtoPstr function in Mac Headers. My program compiles correctly, but
  3791. > the linker cannot find CtoPstr. What object files *.o do I need to
  3792. [snip]
  3793.  
  3794. CtoPstr() and PtoCstr() have changed. They are now defined as c2pstr() and
  3795. p2cstr() in the file, "Strings.h", and their declarations are in
  3796. PPCRuntime.o or Runtime.o in the 68k version.
  3797.  
  3798.  
  3799. > Does Symantec have an E-mail address for technical support questions
  3800. > like this. I looked at their Web site
  3801.  
  3802. Yes!
  3803.  
  3804. Send any C/C++/Pascal/Cafe/VA-TCL question to
  3805. <support@devtools.symantec.com>, for a 24 hour (average Mon.-> Fri.) turn
  3806. around response time.
  3807.  
  3808. - Scott Morison, Symantec Internet Tools Technical Support
  3809.  
  3810. -- 
  3811.  
  3812. For more information on this or any other C/C++/Pascal/Cafe
  3813. issue please feel free to drop us a note or call: 
  3814.  
  3815. E-mail      : support@devtools.symantec.com
  3816. Tech Support: 541/465-8470
  3817. Cust Service: 800/441-7234
  3818.  
  3819. ---------------------------
  3820.  
  3821. >From alex@metcalf.demon.co.uk (Alex Metcalf)
  3822. Subject: System 7.5.5 fixes
  3823. Date: Sun, 22 Sep 1996 00:27:31 GMT
  3824. Organization: (none)
  3825.  
  3826. Hi,
  3827.  
  3828.      I just found this info on System 7.5.5; sorry if people already know
  3829. about it, but it has some interesting tech info on bug fixes:
  3830.  
  3831. http://devworld.apple.com/dev/technotes/tn/tn1069.html
  3832.  
  3833.  
  3834.  
  3835.  
  3836.      Alex
  3837.  
  3838. --
  3839. Alex Metcalf
  3840. alex@metcalf.demon.co.uk
  3841.  
  3842. +++++++++++++++++++++++++++
  3843.  
  3844. >From jayfar@netaxs.com (Jay Farrell)
  3845. Date: Sat, 21 Sep 1996 22:21:14 -0400
  3846. Organization: Net Access - Philadelphia's Original ISP
  3847.  
  3848. In article <alex-2209960128270001@metcalf.demon.co.uk>,
  3849. alex@metcalf.demon.co.uk (Alex Metcalf) wrote:
  3850.  
  3851. > Hi,
  3852. >      I just found this info on System 7.5.5; sorry if people already know
  3853. > about it, but it has some interesting tech info on bug fixes:
  3854. > http://devworld.apple.com/dev/technotes/tn/tn1069.html
  3855.  
  3856. Thanks Alex.  I was unclear on whether the VM enhancements applied to the
  3857. 68k code; I see in the Tech Note 1069 that indeed the 68k VM has been
  3858. rewritten too.  
  3859.  
  3860. On my Quadra 605 with 8 megs real ram, the new 7.5.5 VM _seems_ the perform
  3861. as well as RD did for me under 7.5.3.  YMMV, of course.
  3862.  
  3863. Cheers,
  3864. Jayfar
  3865.  
  3866.    ////~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~////
  3867.   ////   The Mops Page    <URL:http://www.netaxs.com/~jayfar/mops.html>    ////
  3868.  ////~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~////
  3869. ////   Mops is Mike Hore's Freeware Forth/Smalltalk hybrid for Macintosh ////
  3870. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  3871.   Jay Farrell     jayfar@netaxs.com        Philadelphia, Pennsylvania, USA
  3872.  
  3873. +++++++++++++++++++++++++++
  3874.  
  3875. >From jumplong@aol.com (Jump Long)
  3876. Date: 22 Sep 1996 13:33:06 -0400
  3877. Organization: America Online, Inc. (1-800-827-6364)
  3878.  
  3879. Jay Farrell wrote:
  3880. >Thanks Alex.  I was unclear on whether the VM enhancements
  3881. >applied to the 68k code; I see in the Tech Note 1069 that indeed
  3882. >the 68k VM has been rewritten too.  
  3883. >
  3884. >On my Quadra 605 with 8 megs real ram, the new 7.5.5 VM _seems_
  3885. >the perform as well as RD did for me under 7.5.3.  YMMV, of
  3886. >course.
  3887.  
  3888. Actually, VM wasn't completely rewritten by any means -- Jim Gochee,
  3889. working for Apple's Performance Engineering Group, identified some
  3890. behaviors in VM that caused performance problems and I fixed those
  3891. problems. The performance increase is much more noticable on Power
  3892. Macintosh systems, but 68K systems will still benefit.
  3893.  
  3894. I also fixed all of the outstanding bugs against VM in our bug database,
  3895. so VM should be more stable. We've found a few programs that still don't
  3896. work with VM on, but that usually turns out to be a problem with that
  3897. program, not VM. For example, versions of the MPW shell prior to v3.4.2b2
  3898. (on E.T.O #21) were installing a Time Manager task more times than they
  3899. were removing the same task when ScreenUpdateDelay is changed from its
  3900. default value. While that will cause problems even with VM off, turning VM
  3901. on made the problem much more noticable because the table where VM stores
  3902. deferred user tasks overflowed because the calls were not balanced.
  3903.  
  3904. - Jim Luther
  3905.  
  3906. +++++++++++++++++++++++++++
  3907.  
  3908. >From blob@apple.com (Brian Bechtel)
  3909. Date: Sat, 21 Sep 1996 21:16:34 -0700
  3910. Organization: Developer Technical Support, Apple Computer, Inc.
  3911.  
  3912. Reposting article removed by rogue canceller.
  3913.  
  3914. In article <alex-2209960128270001@metcalf.demon.co.uk>,
  3915. alex@metcalf.demon.co.uk (Alex Metcalf) wrote:
  3916.  
  3917. >      I just found this info on System 7.5.5; sorry if people already know
  3918. > about it, but it has some interesting tech info on bug fixes:
  3919. > http://devworld.apple.com/dev/technotes/tn/tn1069.html
  3920.  
  3921. Yes, and I am interested in feedback about this technote.  What is not
  3922. clear?  Where would you like more information?
  3923.  
  3924. It would help me track these comments if you would send them to
  3925. <devsupport@apple.com>.  Use the subject line "System 7.5.5 technote
  3926. feedback", and the message will be automatically routed to me.  Please
  3927. don't use my personal account, as I will just have to forward the message
  3928. from there.  (The devsupport@apple.com mailing address is tracked via a
  3929. database.)
  3930.  
  3931. -- 
  3932. --Brian Bechtel, blob@apple.com  "My opinions, not Apple's"
  3933.  
  3934. +++++++++++++++++++++++++++
  3935.  
  3936. >From jayfar@netaxs.com (Jay Farrell)
  3937. Date: Sat, 21 Sep 1996 22:21:14 -0400
  3938. Organization: Net Access - Philadelphia's Original ISP
  3939.  
  3940. Reposting article removed by rogue canceller.
  3941.  
  3942. In article <alex-2209960128270001@metcalf.demon.co.uk>,
  3943. alex@metcalf.demon.co.uk (Alex Metcalf) wrote:
  3944.  
  3945. > Hi,
  3946. >      I just found this info on System 7.5.5; sorry if people already know
  3947. > about it, but it has some interesting tech info on bug fixes:
  3948. > http://devworld.apple.com/dev/technotes/tn/tn1069.html
  3949.  
  3950. Thanks Alex.  I was unclear on whether the VM enhancements applied to the
  3951. 68k code; I see in the Tech Note 1069 that indeed the 68k VM has been
  3952. rewritten too.  
  3953.  
  3954. On my Quadra 605 with 8 megs real ram, the new 7.5.5 VM _seems_ the perform
  3955. as well as RD did for me under 7.5.3.  YMMV, of course.
  3956.  
  3957. Cheers,
  3958. Jayfar
  3959.  
  3960.    ////~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~////
  3961.   ////   The Mops Page    <URL:http://www.netaxs.com/~jayfar/mops.html>    ////
  3962.  ////~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~////
  3963. ////   Mops is Mike Hore's Freeware Forth/Smalltalk hybrid for Macintosh ////
  3964. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  3965.   Jay Farrell     jayfar@netaxs.com        Philadelphia, Pennsylvania, USA
  3966.  
  3967. ---------------------------
  3968.  
  3969. >From scafidi@cam.org (Warden)
  3970. Subject: Think C 5.0.4...can't load resources! HELP!
  3971. Date: Mon, 23 Sep 1996 09:53:35 -0800
  3972. Organization: Communications Accessibles Montreal, Quebec Canada
  3973.  
  3974.  
  3975.   Hi! I just got Think C 5.0.4 a few days ago and I can't seem to load any
  3976. .rsrc files to my project menu! I tried to add and transfer but it didn't
  3977. read them! Can someone please help!
  3978.  
  3979. Warden
  3980. BTW: Please reply by e-mail
  3981. scafidi@cam.org
  3982.  
  3983. +++++++++++++++++++++++++++
  3984.  
  3985. >From symscott@devtools.symantec.com (Symantec/Scott Morison)
  3986. Date: Mon, 23 Sep 1996 15:28:45 -0800
  3987. Organization: Symantec Corporation
  3988.  
  3989. In article <scafidi-2309960953350001@dynamicppp-174.hip.cam.org>,
  3990. scafidi@cam.org (Warden) wrote:
  3991.  
  3992. >   Hi! I just got Think C 5.0.4 a few days ago and I can't seem to load any
  3993. > .rsrc files to my project menu! I tried to add and transfer but it didn't
  3994. > read them! Can someone please help!
  3995.  
  3996.  
  3997. Warden -
  3998.  
  3999. Is the Add... dialog window filtering out the .rsrc files or do they just
  4000. not appear properly in the project after you've Added them? Try adding
  4001. them to a brand new project just to make sure there no funky corruption
  4002. that's messing up your current project. 
  4003.  
  4004. It may be that you're running into an artifact of the generation gap
  4005. between v5.0.4, which was released in 1989 and the machine/OS and possibly
  4006. whatever resource editor you're using to create your resource files.
  4007.  
  4008. I highly recommend that you update the THINK C version that you have to at
  4009. least v7.0.5 or better yet v8r5, if you have a Power Mac.
  4010.  
  4011. - Scott Morison, Symantec Internet Tools Technical Support
  4012.  
  4013. -- 
  4014.  
  4015. For more information on this or any other C/C++/Pascal/Cafe
  4016. issue please feel free to drop us a note or call: 
  4017.  
  4018. E-mail      : support@devtools.symantec.com
  4019. Tech Support: 541/465-8470
  4020. Cust Service: 800/441-7234
  4021.  
  4022. +++++++++++++++++++++++++++
  4023.  
  4024. >From stian@mail.utexas.edu (Stian F.Oksavik)
  4025. Date: Mon, 23 Sep 1996 22:33:26 -0500
  4026. Organization: University of Texas at Austin
  4027.  
  4028. In article <symscott-2309961528450001@news.symantec.com>,
  4029. symscott@devtools.symantec.com (Symantec/Scott Morison) wrote:
  4030.  
  4031.  > In article <scafidi-2309960953350001@dynamicppp-174.hip.cam.org>,
  4032.  > scafidi@cam.org (Warden) wrote:
  4033.  > 
  4034.  > >   Hi! I just got Think C 5.0.4 a few days ago and I can't seem to load any
  4035.  > > .rsrc files to my project menu! I tried to add and transfer but it didn't
  4036.  > > read them! Can someone please help!
  4037.  > > 
  4038.  > 
  4039.  > 
  4040.  > Warden -
  4041.  > 
  4042.  > Is the Add... dialog window filtering out the .rsrc files or do they just
  4043.  > not appear properly in the project after you've Added them? Try adding
  4044.  > them to a brand new project just to make sure there no funky corruption
  4045.  > that's messing up your current project. 
  4046.  > 
  4047.  > It may be that you're running into an artifact of the generation gap
  4048.  > between v5.0.4, which was released in 1989 and the machine/OS and possibly
  4049.  > whatever resource editor you're using to create your resource files.
  4050.  
  4051. This is definitely an "artifact problem". THINK C 5.0.4 did not let you
  4052. load resource files using the Add... menu item. What you need to do is
  4053. name your resource file the exact same thing as your project plus .rsrc.
  4054. So if your project is named dummy.º, you would name the resource file
  4055. dummy.º.rsrc. This is the only way to add resource files to THINK C 5.0.4
  4056.  
  4057. THINK C finally broke for me when I got a PowerMac; it is not compatible
  4058. with the Modern Memory Manager. I considered upgrading to Symantec C++,
  4059. but I think I'll be getting CodeWarrior instead. Metrowerks' academic
  4060. pricing can't be beat, and CodeWarrior will let you compile for a number
  4061. of different platforms as well.
  4062.  
  4063. Anyway, I hope this helps.
  4064.  
  4065. -Stian
  4066.  
  4067. ---------------------------
  4068.  
  4069. >From gga@it.ntu.edu.au (Giles Alexander)
  4070. Subject: Time Manager Woes...
  4071. Date: 22 Sep 1996 03:26:24 GMT
  4072. Organization: Northern Territory University
  4073.  
  4074. Hi,
  4075.  
  4076. I'm using the Time Manager to wake up my background app periodically.  But
  4077. there are a few problems.
  4078.  
  4079. I'm having some trouble setting the wait time.  I want it to wait 15mins, so
  4080. as there are 1000 millisecs in a sec and 60 secs in a min I set it to
  4081. 60000*15 or 900000.  But, it seems to execute every couple of minutes.
  4082. What am I doing wrong? I use InsXtime and PrimeTime.
  4083.  
  4084. Also, there is a problem with RmvTime.  I call it just before my program quits,
  4085. so that it should be removed on Shut Down.  My program runs from startup to
  4086. shut down.  However, when I try to shut down I get an error that the
  4087. application unknown wouldn't quit.  When I comment out RmvTime it quits fine.
  4088.  
  4089. What am I doing wrong?
  4090.  
  4091. Thanks in advance,
  4092. Giles Alexander
  4093.  
  4094.  
  4095. +++++++++++++++++++++++++++
  4096.  
  4097. >From rgenter@5dgames.com (Rick Genter)
  4098. Date: Sun, 22 Sep 1996 11:53:31 -0400
  4099. Organization: 5D Games, Inc.
  4100.  
  4101. In article <522bl0$r59@pellew.ntu.edu.au>, gga@it.ntu.edu.au (Giles
  4102. Alexander) wrote:
  4103.  
  4104. > I'm having some trouble setting the wait time.  I want it to wait 15mins, so
  4105. > as there are 1000 millisecs in a sec and 60 secs in a min I set it to
  4106. > 60000*15 or 900000.  But, it seems to execute every couple of minutes.
  4107. > What am I doing wrong? I use InsXtime and PrimeTime.
  4108. >
  4109.  
  4110. Make sure you are either compiling with 4-byte ints, or that you specify
  4111. the time as 900000L (long integer constant).
  4112.  
  4113. -- 
  4114. Rick Genter
  4115. VP of R&D
  4116. 5D Games, Inc.
  4117. rgenter@5dgames.com
  4118. <http://www.5dgames.com>
  4119.  
  4120. +++++++++++++++++++++++++++
  4121.  
  4122. >From Russ Hendy <Russ@tui.co.uk>
  4123. Date: Mon, 23 Sep 1996 12:54:35 +0000
  4124. Organization: tui interactive media
  4125.  
  4126. Giles, 
  4127.  
  4128. Could it be that you're storing the 900000 figure in a datatype that's
  4129. too small? You'd then get wierd timing troubles...
  4130.  
  4131. Maybe try a long integer ?
  4132.  
  4133. Russ.
  4134.  
  4135. +++++++++++++++++++++++++++
  4136.  
  4137. >From Russ Hendy <Russ@tui.co.uk>
  4138. Date: Mon, 23 Sep 1996 12:54:35 +0000
  4139. Organization: tui interactive media
  4140.  
  4141. Giles, 
  4142.  
  4143. Could it be that you're storing the 900000 figure in a datatype that's
  4144. too small? You'd then get wierd timing troubles...
  4145.  
  4146. Maybe try a long integer ?
  4147.  
  4148. Russ.
  4149.  
  4150. ---------------------------
  4151.  
  4152. >From be@ihug.co.nz (Bryce Ewing)
  4153. Subject: Using QuickDraw.
  4154. Date: 19 Sep 1996 21:21:07 GMT
  4155. Organization: The Internet Group Ltd
  4156.  
  4157.  
  4158.  Okay, I've done a lot of graphics programming on a PC compatible, and a bit of 
  4159. programming on a Mac, but not involving graphics. It appears that using 
  4160. QuickDraw is the key to it but I'm having all sorts of problems getting it to 
  4161. work.
  4162.  
  4163.  I havn't got much in the way of good documentation for QuickDraw so I don't 
  4164. know the steps involved in opening a new window and drawing in it. I've tried 
  4165. using NewCWindow but it crashed the whole machine. 
  4166.  
  4167.  Anyone have a few tips to get me going?
  4168.  
  4169.  Lance Ewing.
  4170.  
  4171.  
  4172. +++++++++++++++++++++++++++
  4173.  
  4174. >From smfr@santafe.edu (Simon Fraser)
  4175. Date: Thu, 19 Sep 1996 20:41:06 -0700
  4176. Organization: Santa Fe Institute
  4177.  
  4178. In article <51sdg3$ge8@newsource.ihug.co.nz>, be@ihug.co.nz (Bryce Ewing) wrote:
  4179.  
  4180. > Okay, I've done a lot of graphics programming on a PC compatible, and a
  4181. bit of 
  4182. >programming on a Mac, but not involving graphics. It appears that using 
  4183. >QuickDraw is the key to it but I'm having all sorts of problems getting it to 
  4184. >work.
  4185. >
  4186. > I havn't got much in the way of good documentation for QuickDraw so I don't 
  4187. >know the steps involved in opening a new window and drawing in it. I've tried 
  4188. >using NewCWindow but it crashed the whole machine. 
  4189.  
  4190. Try initializing the ToolBox first   ;-)
  4191.  
  4192. Seriously, there is enough sample code out there that you should be
  4193. able to find some that does almost everything you want to do. Find
  4194. some good Mac programming resources on the web (I'll leave it to you
  4195. to find them. [Hint: search engines]), and peruse.
  4196.  
  4197. Also, Apple have large amounts of documentation online, and on
  4198. the shelves in bookstores. Use it.
  4199.  
  4200. Simon
  4201.  
  4202. -- 
  4203. ________________________________________________________________
  4204. Simon Fraser                                  Santa Fe Institute
  4205. smfr@santafe.edu                             1399 Hyde Park Road
  4206. http://www.santafe.edu/~smfr/                 Santa Fe, NM 87501
  4207.  
  4208. +++++++++++++++++++++++++++
  4209.  
  4210. >From Russ Hendy <Russ@tui.co.uk>
  4211. Date: Fri, 20 Sep 1996 15:32:23 +0000
  4212. Organization: tui interactive media
  4213.  
  4214. Lance, 
  4215.  
  4216.   Apple's Developer CD's usually contain the fantastic 'TubeTest'
  4217. starter program. It instantiates a Window and draws two 'eyes' of
  4218. concentric circles on it. You can make the eyes hypnotic by running a
  4219. simple palette animation. 
  4220.  
  4221. Anyway, this is informal, well documented (commented) and the perfect
  4222. thing for starting you off. If you can't find it (I may have wrongly
  4223. named it), eMail me and I'll send you my CodeWarrior copy.  
  4224.  
  4225. Russ...
  4226.  
  4227. +++++++++++++++++++++++++++
  4228.  
  4229. >From bishopsys@aol.com (Matt Bishop)
  4230. Date: Sat, 21 Sep 1996 13:44:10 -0500
  4231. Organization: Bishop Shareware
  4232.  
  4233. In article <51sdg3$ge8@newsource.ihug.co.nz>, be@ihug.co.nz (Bryce Ewing) wrote:
  4234.  
  4235. >  Okay, I've done a lot of graphics programming on a PC compatible, and a
  4236. bit of 
  4237. > programming on a Mac, but not involving graphics. It appears that using 
  4238. > QuickDraw is the key to it but I'm having all sorts of problems getting it to 
  4239. > work.
  4240. >  I havn't got much in the way of good documentation for QuickDraw so I don't 
  4241. > know the steps involved in opening a new window and drawing in it. I've tried 
  4242. > using NewCWindow but it crashed the whole machine. 
  4243. >  Anyone have a few tips to get me going?
  4244. >  Lance Ewing.
  4245.  
  4246.  
  4247. Look here:
  4248. http://www.ambrosiasw.com/alt.sources.mac/macintosh-c/
  4249.  
  4250. It has three chapters on programming quickdraw.
  4251.  
  4252. -Matt
  4253.  
  4254. +++++++++++++++++++++++++++
  4255.  
  4256. >From bishopsys@aol.com (Matt Bishop)
  4257. Date: Sat, 21 Sep 1996 13:44:10 -0500
  4258. Organization: Bishop Shareware
  4259.  
  4260. Reposting article removed by rogue canceller.
  4261.  
  4262. In article <51sdg3$ge8@newsource.ihug.co.nz>, be@ihug.co.nz (Bryce Ewing) wrote:
  4263.  
  4264. >  Okay, I've done a lot of graphics programming on a PC compatible, and a
  4265. bit of 
  4266. > programming on a Mac, but not involving graphics. It appears that using 
  4267. > QuickDraw is the key to it but I'm having all sorts of problems getting it to 
  4268. > work.
  4269. >  I havn't got much in the way of good documentation for QuickDraw so I don't 
  4270. > know the steps involved in opening a new window and drawing in it. I've tried 
  4271. > using NewCWindow but it crashed the whole machine. 
  4272. >  Anyone have a few tips to get me going?
  4273. >  Lance Ewing.
  4274.  
  4275.  
  4276. Look here:
  4277. http://www.ambrosiasw.com/alt.sources.mac/macintosh-c/
  4278.  
  4279. It has three chapters on programming quickdraw.
  4280.  
  4281. -Matt
  4282.  
  4283. +++++++++++++++++++++++++++
  4284.  
  4285. >From dkj@apple.com (Dave Johnson)
  4286. Date: Tue, 24 Sep 1996 14:07:57 -0700
  4287. Organization: Apple Computer, Inc.
  4288.  
  4289. In article <R.bishopsys-2109961344100001@news.zippo.com>,
  4290. bishopsys@aol.com (Matt Bishop) wrote:
  4291.  
  4292. > Reposting article removed by rogue canceller.
  4293. > In article <51sdg3$ge8@newsource.ihug.co.nz>, be@ihug.co.nz (Bryce
  4294. Ewing) wrote:
  4295. > >  Okay, I've done a lot of graphics programming on a PC compatible, and a
  4296. > bit of 
  4297. > > programming on a Mac, but not involving graphics. It appears that using 
  4298. > > QuickDraw is the key to it but I'm having all sorts of problems
  4299. getting it to 
  4300. > > work.
  4301. > > 
  4302. > >  I havn't got much in the way of good documentation for QuickDraw so I
  4303. don't 
  4304. > > know the steps involved in opening a new window and drawing in it.
  4305. I've tried 
  4306. > > using NewCWindow but it crashed the whole machine. 
  4307. > > 
  4308. > >  Anyone have a few tips to get me going?
  4309. > > 
  4310. > >  Lance Ewing.
  4311. > Look here:
  4312. > http://www.ambrosiasw.com/alt.sources.mac/macintosh-c/
  4313. > It has three chapters on programming quickdraw.
  4314. > -Matt
  4315.  
  4316. Don't forget that all of Inside Macintosh is available online as well. Go
  4317. to <http://devworld.apple.com/dev/insidemac.shtml> and check it out.
  4318.  
  4319. Here's a tiny, crude snippet that will open a window and draw a couple
  4320. rectangles in it, if you prefer the quick and dirty approach. Please note
  4321. that this is NOT a complete Macintosh application, simply a demo of
  4322. NewCWindow and a couple drawing routines.
  4323.  
  4324. main()
  4325. {
  4326.    Rect     myRect;
  4327.    WindowPtr   myWindowPtr;
  4328.    
  4329.    // Init Mac toolbox
  4330.    FlushEvents (everyEvent - diskMask, 0 );
  4331.    MaxApplZone();
  4332.    InitGraf (&qd.thePort);
  4333.    InitFonts ();
  4334.    InitWindows ();
  4335.    InitMenus ();
  4336.    TEInit ();
  4337.    InitDialogs (nil);
  4338.    InitCursor ();
  4339.  
  4340.     // Create a 100 by 100 window, 20 pixels from the left of
  4341.     // the main screen, and 50 pixels from the top
  4342.     SetRect(&myRect, 20, 50, 120, 150);
  4343.     myWindowPtr = NewCWindow(
  4344.                nil,           // let system allocate storage space
  4345.                &myRect,       // size of window in global coordinates
  4346.                "\pA Window",     // window title
  4347.                true,          // window is visible
  4348.                documentProc,     // regular document window
  4349.                (WindowPtr)(-1),  // Put it in front of all other windows
  4350.                false,            // no close box, please
  4351.                0L );          // refcon is zero
  4352.     
  4353.     // Get ready to draw a rectangle
  4354.     SetRect(&myRect, 10, 10, 60, 60);
  4355.     SetPort(myWindowPtr); // not really necessary here, but a good habit
  4356.     ForeColor(blackColor);
  4357.     
  4358.     // Draw it
  4359.     PaintRect(&myRect);
  4360.     
  4361.     // Offset the rectangle and draw it again in a different color
  4362.     OffsetRect(&myRect, 30, 30);
  4363.     ForeColor(redColor);
  4364.     PaintRect(&myRect);
  4365.     
  4366.     // Wait for a mouse click, then quit
  4367.     while(!Button())
  4368.       ;
  4369.     
  4370.     // clean up
  4371.     DisposeWindow(myWindowPtr);
  4372. }
  4373.  
  4374.  
  4375. Dave Johnson
  4376. dkj@apple.com
  4377.  
  4378. ---------------------------
  4379.  
  4380. >From jchauvin@netcom.com (John H. Chauvin)
  4381. Subject: Where are the programmers switches on the new PCI Macs?
  4382. Date: Sat, 21 Sep 1996 23:24:29 GMT
  4383. Organization: NETCOM On-line Communication Services (408 261-4700 guest)
  4384.  
  4385. I am planning on buying a new PowerMac 7600/132 to replace my dieing
  4386. Mac IIci. The IIci has two programmers switches on the front of the unit.
  4387. One lets me drop down into my debugger the other reset the computer. I
  4388. do not see these two switches on the 7600 unit. Did I miss something.
  4389.  
  4390. How do you drop down into MacBug? How do you reset the CPU?
  4391.  
  4392. Thanks,
  4393.  
  4394. John Chauvin
  4395. -- 
  4396. John H. Chauvin jchauvin@netcom.COM
  4397. Netcom - Online Communication Services San Jose, CA
  4398.  
  4399. +++++++++++++++++++++++++++
  4400.  
  4401. >From mh@primenet.com (Mark Hartman)
  4402. Date: 22 Sep 1996 07:12:10 -0700
  4403. Organization: Mark Hartman Computer Solutions
  4404.  
  4405. In article <jchauvinDy3vou.Cuq@netcom.com>, jchauvin@netcom.com (John H.
  4406. Chauvin) wrote:
  4407.  
  4408. >How do you drop down into MacBug?
  4409.  
  4410. Commmand-PowerOn.
  4411.  
  4412. >How do you reset the CPU?
  4413.  
  4414. Command-Control-PowerOn.
  4415. ======================================================================
  4416. Mark Hartman Computer Solutions - specializing in all things Macintosh
  4417.    C  C++   4th Dimension   Networking   System design/architecture
  4418. tel +1(714)758.0640 -+- fax +1(714)999.5030 -+- e-mail mh@primenet.com
  4419. ======================================================================
  4420.    Did you know that Win95 sold barely HALF of its sales forecast?
  4421.  
  4422. +++++++++++++++++++++++++++
  4423.  
  4424. >From nagle@netcom.com (John Nagle)
  4425. Date: Tue, 24 Sep 1996 04:27:13 GMT
  4426. Organization: NETCOM On-line Communication Services (408 261-4700 guest)
  4427.  
  4428. jchauvin@netcom.com (John H. Chauvin) writes:
  4429. >I am planning on buying a new PowerMac 7600/132 to replace my dieing
  4430. >Mac IIci. The IIci has two programmers switches on the front of the unit.
  4431. >One lets me drop down into my debugger the other reset the computer. I
  4432. >do not see these two switches on the 7600 unit. Did I miss something.
  4433.  
  4434. >How do you drop down into MacBug? How do you reset the CPU?
  4435.  
  4436.       There's some funny combination of several keys you have to press
  4437. all at once, but I can never remember what it is.  It's one of those
  4438. "oral tradition" Mac things, like understanding off-key startup chimes.
  4439.  
  4440.                         John Nagle
  4441.  
  4442. +++++++++++++++++++++++++++
  4443.  
  4444. >From sch@unx.sas.com (Steve Holzworth)
  4445. Date: Mon, 23 Sep 1996 21:22:43 GMT
  4446. Organization: SAS Institute Inc.
  4447.  
  4448. jchauvin@netcom.com (John H. Chauvin) writes:
  4449.  
  4450. >I am planning on buying a new PowerMac 7600/132 to replace my dieing
  4451. >Mac IIci. The IIci has two programmers switches on the front of the unit.
  4452. >One lets me drop down into my debugger the other reset the computer. I
  4453. >do not see these two switches on the 7600 unit. Did I miss something.
  4454.  
  4455. >How do you drop down into MacBug? How do you reset the CPU?
  4456.  
  4457. For interrupt (i.e. - programmer's switch):
  4458. On most contemporary Macs, press and hold the "command" (Apple) key
  4459. then press the Power button (the one in the upper right with a triangle
  4460. on it).
  4461.  
  4462. For reset:
  4463. Same as above, but press and hold command and Control, then Power.
  4464. These are much more convenient for debugging than the little buttons on 
  4465. the box used to be.
  4466.  
  4467. If the machine gets into a really screwed up state, sometimes the above
  4468. will not work. Then you use the old-fashioned method: pull the plug :-)
  4469. (or turn it off, then on again).
  4470. --
  4471. Steve Holzworth
  4472. sch@unx.sas.com                    "Do not attribute to poor spelling
  4473. SAS Institute   x6872               That which is actually poor typing..."
  4474. Open Systems R&D  VMS/MAC/UNIX                            - me
  4475. Cary, N.C.
  4476.  
  4477. +++++++++++++++++++++++++++
  4478.  
  4479. >From parkec3@rpi.edu (Chris Parker)
  4480. Date: Tue, 24 Sep 1996 07:24:07 -0400
  4481. Organization: Rensselaer Polytechnic Institute, Troy NY, USA
  4482.  
  4483. In article <nagleDy7z1D.F5F@netcom.com>, nagle@netcom.com (John Nagle) wrote:
  4484.  
  4485. > jchauvin@netcom.com (John H. Chauvin) writes:
  4486. > >I am planning on buying a new PowerMac 7600/132 to replace my dieing
  4487. > >Mac IIci. The IIci has two programmers switches on the front of the unit.
  4488. > >One lets me drop down into my debugger the other reset the computer. I
  4489. > >do not see these two switches on the 7600 unit. Did I miss something.
  4490. > >How do you drop down into MacBug? How do you reset the CPU?
  4491. >       There's some funny combination of several keys you have to press
  4492. > all at once, but I can never remember what it is.  It's one of those
  4493. > "oral tradition" Mac things, like understanding off-key startup chimes.
  4494. >                                                 John Nagle
  4495.  
  4496. Lo, come gather in the circle to learn the secret of dropping into MacsBug
  4497. on many new Macintoshes,... :^)
  4498.  
  4499. No, seriously.  You can kick into the debugger by hitting cmd-powerkey. 
  4500. This'll give you that oh-so-familiar (assuming you have it installed, of
  4501. course) screen-o-hex that you know and love.
  4502.  
  4503. - Chris
  4504.  
  4505. - -------------------------------------------------------------------
  4506. Check out the Design Conference Room Page!    http://www.dcr.rpi.edu/
  4507. - -------------------------------------------------------------------
  4508. Chris Parker                "If it wasn't hard, everyone would do it.
  4509. parkec3@rpi.edu                     The hard is what makes it great."
  4510. http://www.rpi.edu/~parkec3/     - Tom Hanks, _A_League_of_Their_Own_
  4511.  
  4512. ---------------------------
  4513.  
  4514. >From MWRon@metrowerks.com (MW Ron)
  4515. Subject: [ANN] CW 10 is in the mail
  4516. Date: Wed, 18 Sep 1996 09:44:09 -0400
  4517. Organization: Metrowerks
  4518.  
  4519. CodeWarriors,
  4520.  
  4521.  CW 10 has been put in the mail and should be received world wide by
  4522. October 4th.  Hopefully you will have it this week or first of next week.
  4523. US updates were sent out via US Mail, International renewals were sent out
  4524. via DHL Mail Express and are in the local mail system now. New Purchases,
  4525. Bundles and Renewals were sent out via Airborne Express in the USA today
  4526. and should be arriving tomorrow morning.  International Distributors will
  4527. be sending CodeWarrior to their customers but they too should all be
  4528. arriving by the first week in October.
  4529.  
  4530.  
  4531. Please have a bit of patience but if you haven't received CW 10 by the
  4532. first week in October be sure to let me know.
  4533.  
  4534. Thanks,  We are very proud of this release and want you to have it as soon
  4535. as possible.
  4536.  
  4537. Ron
  4538.  
  4539. -- 
  4540. METROWERKS                   Ron Liechty
  4541. "Software at Work"    MWRon@metrowerks.com
  4542. http://www.metrowerks.com/about/people/rogues.html#mwron
  4543.  
  4544. +++++++++++++++++++++++++++
  4545.  
  4546. >From Michael Simpson <simpson@cts.com>
  4547. Date: 20 Sep 1996 06:31:55 GMT
  4548. Organization: CTS Network Services
  4549.  
  4550. Subject: [ANN] CW 10 is in the mail
  4551. >
  4552. >Please have a bit of patience but if you haven't received CW 10 by the
  4553. >first week in October be sure to let me know.
  4554. >
  4555. >Thanks,  We are very proud of this release and want you to have it as
  4556. soon
  4557. >as possible.
  4558.  
  4559. >Ron
  4560.  
  4561. Arnold spotted in San Diego, California Sept. 19, 1996!
  4562. On my birthday no less.  Thanks guys!
  4563.  
  4564. Michael
  4565. simpson@cts.com
  4566.  
  4567. +++++++++++++++++++++++++++
  4568.  
  4569. >From bd24@rz.uni-karlsruhe.de (Markus Imhof)
  4570. Date: Mon, 23 Sep 1996 14:33:57 +0100
  4571. Organization: IEKP Uni Karlsruhe
  4572.  
  4573. In article <51tdor$cal@optional.cts.com>, Michael Simpson
  4574. <simpson@cts.com> wrote:
  4575.  
  4576. ....
  4577. > Arnold spotted in San Diego, California Sept. 19, 1996!
  4578. > On my birthday no less.  Thanks guys!
  4579. ....
  4580. Found it in the mail today (Karlsruhe, Germany, 23. Sept). Commendably
  4581. fast, if you include the time it must have taken the customs people to put
  4582. that stupid green sticker on :-)
  4583.  
  4584. Bye
  4585.  Markus
  4586.  
  4587. +++++++++++++++++++++++++++
  4588.  
  4589. >From mouser@zercom.net (Martin-Gilles Lavoie)
  4590. Date: 24 Sep 1996 12:30:15 GMT
  4591. Organization: Groupimage, inc.
  4592.  
  4593. In article <51tdor$cal@optional.cts.com>, Michael Simpson
  4594. <simpson@cts.com> wrote:
  4595.  
  4596. > >Please have a bit of patience but if you haven't received CW 10 by the
  4597. > >first week in October be sure to let me know.
  4598. [...]
  4599. > >Ron
  4600. > Arnold spotted in San Diego, California Sept. 19, 1996!
  4601. > On my birthday no less.  Thanks guys!
  4602.  
  4603. Shoot!  My birthday is in June!
  4604.  
  4605. -- 
  4606. Martin-Gilles Lavoie
  4607. "The only trinary-state binary system known to live"
  4608. [Develop issue 24, page 4]
  4609.  
  4610. +++++++++++++++++++++++++++
  4611.  
  4612. >From nick@chem.ucla.edu ( nick.c @MT )
  4613. Date: Tue, 24 Sep 1996 11:25:13 -0800
  4614. Organization: MacTech Magazine
  4615.  
  4616.  
  4617.  
  4618.    
  4619.           Arnold Report: CW arrived in my Los Angeles box 9/23.
  4620.             (The CW 10 World Tour Begins! :-)
  4621.  
  4622. ____Nicholas C. DeMello, Ph.D.________________________________________
  4623.  
  4624.   Online for MacTech Magazine, the Journal of Macintosh Programming
  4625.      http://www.MacTech.com/
  4626.                                        _/   _/  _/  _/_/_/   _/   _/  
  4627.   Chemistry: Nick@chem.UCLA.edu       _/_/ _/  _/  _/   _/  _/_/_/ 
  4628.     MacTech: Online@MacTech.com      _/ _/_/  _/  _/       _/ _/    
  4629.        http://www.chem.ucla.edu/~nick/   _/  _/   _/_/_/  _/   _/     
  4630.  
  4631. ---------------------------
  4632.  
  4633. >From MultiQuest News <info@multiquest.com>
  4634. Subject: [ANN] OO Design Tool for Macintosh
  4635. Date: Sun, 22 Sep 1996 23:41:31 -0500
  4636. Organization: MultiQuest Corporation
  4637.  
  4638. =======================================================================
  4639. MultiQuest Announces S-CASE 3.0 for Macintosh
  4640. With Unified Modeling Language Support & Reverse Engineering
  4641. =======================================================================
  4642.  
  4643. Schaumburg, IL (September 23, 1996) - MultiQuest announced today the 
  4644. release of S-CASE 3.0 for Macintosh. This new version satisfies the
  4645. demand for Unified Modeling Language tools brought about by the
  4646. increasing popularity of this new method. The Unified Modeling 
  4647. Language, proposed by Grady Booch, Ivar Jacobson and Jim Rumbaugh
  4648. represents the unification of the Booch, Objectory and OMT methods.
  4649. S-CASE 3.0 enables analysts, designers and engineers to start using
  4650. this method right away, utilizing its potential to create simpler,
  4651. cleaner and more expressive models. 
  4652.  
  4653. S-CASE 3.0 also introduces scripted access to its metamodel. Users can 
  4654. now extract model elements using Tcl scripts, and output them in 
  4655. whatever format they wish, such as C++, Java, Smalltalk, SQL or
  4656. customized reports. In fact, the built in C++ code generator is written
  4657. entirely in Tcl, enabling users to customize the output to their coding
  4658. standards.
  4659.  
  4660. "The possibility to reach the model from scripts opens for instant 
  4661. documentation of our classes and for adapting the code generation 
  4662. process to our internal conventions," said Anders Igelstroem, Project
  4663. Manager at Innovativ Vision Image Systems.
  4664.  
  4665. S-CASE 3.0 provides C++ reverse engineering capability which is
  4666. extremely fast and easy to use. It also allows automatic layout of
  4667. parsed models for quick visualization and comprehension. Reverse
  4668. engineered models can be integrated with existing applications
  4669. or new projects.
  4670.  
  4671. S-CASE 3.0 promotes design reuse by introducing the concept of 
  4672. packages. Packages encapsulate all the elements needed for reuse.  
  4673. Users can create new models from "off-the-shelf" packages.
  4674.  
  4675. "S-CASE 3.0 provides us with tremendous flexibility in terms of how 
  4676. we go about refining and extending a design", said Frank Alviani, 
  4677. Senior Technical Coordinator at UOP. "It gives us the critical ability 
  4678. to reuse designs, which is where the ultimate payoff for reusability 
  4679. really lies."
  4680.  
  4681. Available immediately, S-CASE 3.0 for Macintosh lists at $495.
  4682. A save-limited evaluation version can be downloaded from
  4683. http://www.multiquest.com.
  4684.  
  4685. Founded in 1989, MultiQuest Corporation offers innovative tools and 
  4686. services to software developers worldwide. The company's mission is 
  4687. to consistently increase the productivity of software engineering 
  4688. teams by providing superior tools to analyze, design and implement 
  4689. complex software systems. For further information please call
  4690. (847) 397-9930, fax (847) 397-9931 or email to info@multiquest.com.
  4691.  
  4692. MultiQuest Corporation
  4693. 1931 N Meacham Road, Suite 318
  4694. Schaumburg, IL 60173
  4695. Tel: (847) 397-9930
  4696. Fax: (847) 397-9931
  4697. Email: info@multiquest.com   
  4698. http://www.multiquest.com
  4699.  
  4700. MultiQuest(tm) and S-CASE(tm) are trademarks of MultiQuest Corporation.
  4701. All other trademarks are the property of their respective owners.
  4702.  
  4703. ---------------------------
  4704.  
  4705. >From rcoleman@vrlab-www.redstone.army.mil (Rick)
  4706. Subject: [Q] Creating fog in QD3D
  4707. Date: 16 Sep 1996 13:51:01 GMT
  4708. Organization: VR
  4709.  
  4710. I am trying to create the effect of fog or haze that one sees as objects
  4711. get farther away from the view point.  In OpenGL this is created by
  4712. defining a "fog factor" which the renderer applies, based on an object's
  4713. distance from the eye point, when calculating the color of a pixel.  Is
  4714. there a way to do the same thing in QD3D?
  4715.  
  4716. Thanks in advance for your help.
  4717.  
  4718. +++++++++++++++++++++++++++
  4719.  
  4720. >From ackack@best.com (Daniel Jalkut)
  4721. Date: 22 Sep 1996 12:37:36 -0700
  4722. Organization: BEST Internet Communications
  4723.  
  4724. rcoleman@vrlab-www.redstone.army.mil (Rick) writes:
  4725.  
  4726. >I am trying to create the effect of fog or haze that one sees as objects
  4727. >get farther away from the view point.  In OpenGL this is created by
  4728. >defining a "fog factor" which the renderer applies, based on an object's
  4729. >distance from the eye point, when calculating the color of a pixel.  Is
  4730. >there a way to do the same thing in QD3D?
  4731.  
  4732. >Thanks in advance for your help.
  4733.  
  4734. Fog and clouds are not featured in the current QD3D, so you'll have to 
  4735. a. wait for them to be added
  4736. b. come up with your own
  4737.  
  4738. Perhaps someone with more practical experience with QD3D can suggest some
  4739. good tricks for you, but I recommend looking up the techniques in a
  4740. Computer Graphics Bible.
  4741.  
  4742. =
  4743. AckAck Software
  4744. ackack@best.com
  4745.  
  4746. +++++++++++++++++++++++++++
  4747.  
  4748. >From metals@rapidnet.com (Kevin Stone)
  4749. Date: 24 Sep 1996 12:11:17 -0600
  4750. Organization: RapidNet
  4751.  
  4752. : >I am trying to create the effect of fog or haze that one sees as objects
  4753. : >get farther away from the view point.  In OpenGL this is created by
  4754. : >defining a "fog factor" which the renderer applies, based on an object's
  4755. : >distance from the eye point, when calculating the color of a pixel.  Is
  4756. : >there a way to do the same thing in QD3D?
  4757.  
  4758. : >Thanks in advance for your help.
  4759.  
  4760. : Fog and clouds are not featured in the current QD3D, so you'll have to 
  4761. : a. wait for them to be added
  4762. : b. come up with your own
  4763.  
  4764.    Real "fog" can not easily be rendered unless you scan-convert and 
  4765.    render the polygons your self.  Because fog density is a factor of 
  4766.    distance, the Z coordinate of polygons should be interpolated during 
  4767.    scan-conversion to tell the scan-line renderer what amount of the 
  4768.    "fog" color should be applied to each pixel.  For speed concerns, the 
  4769.    fog colors should be stored in an array which stores all possible
  4770.    fog densities overlayed onto all possible colors.
  4771.  
  4772.    You could do some Fake fog by changing the color of individual 
  4773.    polygons slightly as they move into the distance, but I really doubt 
  4774.    it would look good.
  4775.  
  4776. Sincerly,
  4777.   Brian Stone
  4778.   Stone Enterprises
  4779.   metals@rapidnet.com
  4780.   
  4781.  
  4782. +++++++++++++++++++++++++++
  4783.  
  4784. >From metals@rapidnet.com (Kevin Stone)
  4785. Date: 24 Sep 1996 12:11:17 -0600
  4786. Organization: RapidNet
  4787.  
  4788. : >I am trying to create the effect of fog or haze that one sees as objects
  4789. : >get farther away from the view point.  In OpenGL this is created by
  4790. : >defining a "fog factor" which the renderer applies, based on an object's
  4791. : >distance from the eye point, when calculating the color of a pixel.  Is
  4792. : >there a way to do the same thing in QD3D?
  4793.  
  4794. : >Thanks in advance for your help.
  4795.  
  4796. : Fog and clouds are not featured in the current QD3D, so you'll have to 
  4797. : a. wait for them to be added
  4798. : b. come up with your own
  4799.  
  4800.    Real "fog" can not easily be rendered unless you scan-convert and 
  4801.    render the polygons your self.  Because fog density is a factor of 
  4802.    distance, the Z coordinate of polygons should be interpolated during 
  4803.    scan-conversion to tell the scan-line renderer what amount of the 
  4804.    "fog" color should be applied to each pixel.  For speed concerns, the 
  4805.    fog colors should be stored in an array which stores all possible
  4806.    fog densities overlayed onto all possible colors.
  4807.  
  4808.    You could do some Fake fog by changing the color of individual 
  4809.    polygons slightly as they move into the distance, but I really doubt 
  4810.    it would look good.
  4811.  
  4812. Sincerly,
  4813.   Brian Stone
  4814.   Stone Enterprises
  4815.   metals@rapidnet.com
  4816.   
  4817.  
  4818. ---------------------------
  4819.  
  4820. >From g-kendall@nwu.edu (Brian Kendall)
  4821. Subject: [Q] Reading text from anywhere in a file (in C or C++)
  4822. Date: Mon, 23 Sep 1996 19:13:53 -0400
  4823. Organization: Programmer
  4824.  
  4825.  
  4826. Hi there!
  4827.  
  4828.  
  4829. I have an interesting problem. I'm writing a music program that lets you
  4830. change the size of your song on the fly. I decided the best way to do this
  4831. is to edit a text file. That way, I wouldn't have to worry about changing
  4832. the size of an array (which is hard) and running out of memory (okay,
  4833. okay, you could run out of disk space but it's more likely that someone
  4834. would have more disk space then memory).
  4835.  
  4836. To do this, I'd need to be able to access any point in a text file. That's
  4837. easy. But I also need to change part of a text file without changing the
  4838. entire thing.
  4839. I haven't found an IOStreams or stdio.h file that does this. So my question is:
  4840. how do you do it? 
  4841.  
  4842. My program isn't too speed dependant so I don't need to worry about things
  4843. taken a little bit of time. (But I can't use code that takes seconds to
  4844. compute. It adds up and becomes annoying to the user).
  4845.  
  4846. Any help about how to do this would be great.
  4847.  
  4848.  
  4849. Brian K.
  4850.  
  4851. ãããããããããããããããããããããããããããããããããããããããããããããããããããããããããããããããããã
  4852. "If you take cranberries and stew them like apple sauce, it tastes
  4853. much more like prunes then rhubarb does." ã Groucho Marx
  4854. ãããããããããããããããããããããããããããããããããããããããããããããããããããããããããããããããããã
  4855.  
  4856. +++++++++++++++++++++++++++
  4857.  
  4858. >From "Thomas L. Ferrell" <ferrelltl@ornl.gov>
  4859. Date: 24 Sep 1996 04:13:34 GMT
  4860. Organization: Oak Ridge National Lab
  4861.  
  4862. g-kendall@nwu.edu (Brian Kendall) wrote:
  4863. >
  4864. >Hi there!
  4865. >
  4866. >I have an interesting problem. I'm writing a music program that lets >you change the size of your song on the fly. I decided the be=
  4867. st way to >do this is to edit a text file. That way, I wouldn't have to worry >about changing the size of an array (which is hard) a=
  4868. nd running out of >memory (okay,okay, you could run out of disk space but it's more likely >that someone would have more disk space =
  4869. then memory).
  4870. >
  4871. >To do this, I'd need to be able to access any point in a text file. >That's easy. But I also need to change part of a text file wit=
  4872. hout >changing the entire thing.
  4873. >I haven't found an IOStreams or stdio.h file that does this. So my >question is: how do you do it? 
  4874. >
  4875. >My program isn't too speed dependant so I don't need to worry about >things taken a little bit of time. (But I can't use code that =
  4876. takes seconds to compute. It adds up and becomes annoying to the user).
  4877. >
  4878. >Any help about how to do this would be great.
  4879. >
  4880. >Brian K.
  4881.  
  4882. Hi Brian, It's hard to answer you without knowing a little bit more. Have you used fopen("foo.text","w"); in your work before? You n=
  4883. eed to open the file ,use fscanf, use the feof, and use fclose. If you haven't used these before, I'll send some snippets. It may be=
  4884.  useful to number your lines in your text file as a reference, tho this may not be necessary.
  4885. tom
  4886.  
  4887.  
  4888.  
  4889.  
  4890. +++++++++++++++++++++++++++
  4891.  
  4892. >From g-kendall@nwu.edu (Brian Kendall)
  4893. Date: Tue, 24 Sep 1996 16:31:12 -0400
  4894. Organization: Programmer
  4895.  
  4896. In article <527n5e$4p7@stc06.ctd.ornl.gov>, "Thomas L. Ferrell"
  4897. <ferrelltl@ornl.gov> wrote:
  4898.  
  4899. > g-kendall@nwu.edu (Brian Kendall) wrote:
  4900. > >
  4901. > >Hi there!
  4902. > >
  4903. > >I have an interesting problem. I'm writing a music program that lets
  4904. >you change the size of your song on the fly. I decided the be=
  4905. > st way to >do this is to edit a text file. That way, I wouldn't have to
  4906. worry >about changing the size of an array (which is hard) a=
  4907. > nd running out of >memory (okay,okay, you could run out of disk space
  4908. but it's more likely >that someone would have more disk space =
  4909. > then memory).
  4910. > >
  4911. > >To do this, I'd need to be able to access any point in a text file.
  4912. >That's easy. But I also need to change part of a text file wit=
  4913. > hout >changing the entire thing.
  4914. > >I haven't found an IOStreams or stdio.h file that does this. So my
  4915. >question is: how do you do it? 
  4916. > >
  4917. > >My program isn't too speed dependant so I don't need to worry about
  4918. >things taken a little bit of time. (But I can't use code that =
  4919. > takes seconds to compute. It adds up and becomes annoying to the user).
  4920. > >
  4921. > >Any help about how to do this would be great.
  4922. > >
  4923. > >Brian K.
  4924. > Hi Brian, It's hard to answer you without knowing a little bit more.
  4925. Have you used fopen("foo.text","w"); in your work before? You n=
  4926. > eed to open the file ,use fscanf, use the feof, and use fclose. If you
  4927. haven't used these before, I'll send some snippets. It may be=
  4928. >  useful to number your lines in your text file as a reference, tho this
  4929. may not be necessary.
  4930. > tom
  4931.  
  4932. Accutally, I was using C++ IOStreams to open the file. If you think
  4933. regular C code will work well, then feel free to send my some snippets.
  4934.  
  4935. Brian K.
  4936.  
  4937. ãããããããããããããããããããããããããããããããããããããããããããããããããããããããããããããããããã
  4938. "If you take cranberries and stew them like apple sauce, it tastes
  4939. much more like prunes then rhubarb does." ã Groucho Marx
  4940. ãããããããããããããããããããããããããããããããããããããããããããããããããããããããããããããããããã
  4941.  
  4942. ---------------------------
  4943.  
  4944. >From n@net.net
  4945. Subject: [Q] ShutDwnPower mystery?
  4946. Date: Sat, 21 Sep 1996 20:36:29 -0500
  4947. Organization: Frontier Internet Rochester N.Y. (716)-777-SURF
  4948.  
  4949. I'm writing a simple password program, mainly to learn C, and everything
  4950. works fine except for one thing. 
  4951.  
  4952. The way it works is that if an incorrect password is entered more than 3
  4953. times, the application saves the time and date of the intrusion attempt in
  4954. a resource, and then shuts off the machine's power with ShutDwnPower();.
  4955. While working on it, I've used ExitToShell() instead of ShutDwnPower() for
  4956. the obvious reason that I don't want to reboot my machine each time I test
  4957. it. The strange thing is that the built application works fine with the
  4958. call to ExitToShell--that is, it writes the resource of the intrusion
  4959. attempt, and then quits to the finder. When I build the application
  4960. substituting ShutDwn Power for ExitToShell, it shuts the power down,
  4961. allright, but it DOESN'T write to the application's resource file. Does
  4962. anyone know what's wrong?
  4963.  
  4964.             //ShutDwnPower();  //<-----uncomment this for application
  4965.             ExitToShell();
  4966. This works!
  4967.  
  4968.             ShutDwnPower();
  4969. This doesn't!!
  4970. This is absolutely the ONLY thing I changed!!
  4971. --Nicolo
  4972.  
  4973. +++++++++++++++++++++++++++
  4974.  
  4975. >From jude@smellycat.com (Jude Giampaolo)
  4976. Date: Sat, 21 Sep 1996 22:54:11 -0400
  4977. Organization: CyberDrugs
  4978.  
  4979. In article <n-2109962036290001@news.frontiernet.net>, n@net.net wrote:
  4980.  
  4981. > The way it works is that if an incorrect password is entered more than 3
  4982. > times, the application saves the time and date of the intrusion attempt in
  4983. > a resource, and then shuts off the machine's power with ShutDwnPower();.
  4984. > While working on it, I've used ExitToShell() instead of ShutDwnPower() for
  4985. > the obvious reason that I don't want to reboot my machine each time I test
  4986. > it. The strange thing is that the built application works fine with the
  4987. > call to ExitToShell--that is, it writes the resource of the intrusion
  4988. > attempt, and then quits to the finder. When I build the application
  4989. > substituting ShutDwn Power for ExitToShell, it shuts the power down,
  4990. > allright, but it DOESN'T write to the application's resource file. Does
  4991. > anyone know what's wrong?
  4992.  
  4993. Your're not flushing the changed resource to disk. You'll want to call
  4994. UpdateResource and then flush the disk cache. I don't remember how to do
  4995. this. I would consider sending the finder an event telling it to shut doen
  4996. as sinply cutting the power isn't nice on the filesystem.
  4997.  
  4998. -- 
  4999. Jude Charles Giampaolo         'There's not much to see actually,
  5000. jcg8@po.cwru.edu                we're inside a Chinese dragon...' 
  5001. jude@smellycat.com      http://prozac.cwru.edu/jude/JudeHome.html
  5002. Mac NFS serevr:   http://prozac.cwru.edu/jude/macnfs/Macnfsd.html
  5003.  
  5004. +++++++++++++++++++++++++++
  5005.  
  5006. >From grayowl@sover.net (Vinay Prabhakar)
  5007. Date: Sat, 21 Sep 1996 23:24:50 -0500
  5008. Organization: Gray Owl Software
  5009.  
  5010. In article <n-2109962036290001@news.frontiernet.net>, n@net.net wrote:
  5011.  
  5012. > I'm writing a simple password program, mainly to learn C, and everything
  5013. > works fine except for one thing. 
  5014. > The way it works is that if an incorrect password is entered more than 3
  5015. > times, the application saves the time and date of the intrusion attempt in
  5016. > a resource, and then shuts off the machine's power with ShutDwnPower();.
  5017. > While working on it, I've used ExitToShell() instead of ShutDwnPower() for
  5018. > the obvious reason that I don't want to reboot my machine each time I test
  5019. > it. The strange thing is that the built application works fine with the
  5020. > call to ExitToShell--that is, it writes the resource of the intrusion
  5021. > attempt, and then quits to the finder. When I build the application
  5022. > substituting ShutDwn Power for ExitToShell, it shuts the power down,
  5023. > allright, but it DOESN'T write to the application's resource file. Does
  5024. > anyone know what's wrong?
  5025. >             //ShutDwnPower();  //<-----uncomment this for application
  5026. >             ExitToShell();
  5027. > This works!
  5028. >             ShutDwnPower();
  5029. > This doesn't!!
  5030. > This is absolutely the ONLY thing I changed!!
  5031. > --Nicolo
  5032.  
  5033. You say that you save the time and date of the intrusion attempt in a
  5034. resource- are you calling UpdateResFile on your app's resource fork after
  5035. doing the WriteResource? UpdateResFile forces a write to disk. 
  5036.  
  5037. Normally you don't _have_ to call UpdateResFile, because the resource fork
  5038. is updated when your application closes. (even via ExitToShell). However
  5039. calling ShutDwnPower is pretty much like pulling the plug- you can't
  5040. expect the data to be written out beforehand.
  5041.  
  5042. -- 
  5043. Vinay Prabhakar
  5044. Gray Owl Software
  5045.  
  5046. +++++++++++++++++++++++++++
  5047.  
  5048. >From jumplong@aol.com (Jump Long)
  5049. Date: 22 Sep 1996 13:52:54 -0400
  5050. Organization: America Online, Inc. (1-800-827-6364)
  5051.  
  5052. Nicolo wrote:
  5053. >I'm writing a simple password program, mainly to learn C, and
  5054. >everything works fine except for one thing. 
  5055. >
  5056. >The way it works is that if an incorrect password is entered
  5057. >more than 3 times, the application saves the time and date of
  5058. >the intrusion attempt in a resource, and then shuts off the
  5059. >machine's power with ShutDwnPower();. While working on it, I've
  5060. >used ExitToShell() instead of ShutDwnPower() for the obvious
  5061. >reason that I don't want to reboot my machine each time I test
  5062. >it. The strange thing is that the built application works fine
  5063. >with the call to ExitToShell--that is, it writes the resource of
  5064. >the intrusion attempt, and then quits to the finder. When I
  5065. >build the application substituting ShutDwn Power for
  5066. >ExitToShell, it shuts the power down, allright, but it DOESN'T
  5067. >write to the application's resource file. Does anyone know
  5068. >what's wrong?
  5069. >
  5070. >            //ShutDwnPower();  //<-----uncomment this for
  5071. >application
  5072. >            ExitToShell(); This works!
  5073. >
  5074. >            ShutDwnPower(); This doesn't!! This is absolutely
  5075. >the ONLY thing I changed!!
  5076.  
  5077. It sounds like you forgot to close your resource file. ExitToShell does
  5078. that for you (if you forgot).
  5079.  
  5080. - Jim Luther
  5081.  
  5082. +++++++++++++++++++++++++++
  5083.  
  5084. >From btcarey@primenet.com (Brent A. Carey)
  5085. Date: 22 Sep 1996 11:11:02 -0700
  5086. Organization: Primenet Services for the Internet
  5087.  
  5088. In article <n-2109962036290001@news.frontiernet.net>, n@net.net wrote:
  5089.  
  5090. > attempt, and then quits to the finder. When I build the application
  5091. > substituting ShutDwn Power for ExitToShell, it shuts the power down,
  5092. > allright, but it DOESN'T write to the application's resource file. Does
  5093.  
  5094. Perhaps you forgot to close your resource file after writing to it.  If
  5095. you haven't already, use CloseResFile() or UpdateResFile(), depending on
  5096. how you accessed the resource file.  If the application writes to it's own
  5097. resource file, UpdateResFile() is sufficient.  Otherwise, if you used
  5098. something like OpenResFile() to access an external resource file, then
  5099. CloseResFile() will do the trick.
  5100.  
  5101. I hope this helps.
  5102.  
  5103. Brent
  5104.  
  5105. +++++++++++++++++++++++++++
  5106.  
  5107. >From jude@smellycat.com (Jude Giampaolo)
  5108. Date: Sat, 21 Sep 1996 22:54:11 -0400
  5109. Organization: CyberDrugs
  5110.  
  5111. Reposting article removed by rogue canceller.
  5112.  
  5113. In article <n-2109962036290001@news.frontiernet.net>, n@net.net wrote:
  5114.  
  5115. > The way it works is that if an incorrect password is entered more than 3
  5116. > times, the application saves the time and date of the intrusion attempt in
  5117. > a resource, and then shuts off the machine's power with ShutDwnPower();.
  5118. > While working on it, I've used ExitToShell() instead of ShutDwnPower() for
  5119. > the obvious reason that I don't want to reboot my machine each time I test
  5120. > it. The strange thing is that the built application works fine with the
  5121. > call to ExitToShell--that is, it writes the resource of the intrusion
  5122. > attempt, and then quits to the finder. When I build the application
  5123. > substituting ShutDwn Power for ExitToShell, it shuts the power down,
  5124. > allright, but it DOESN'T write to the application's resource file. Does
  5125. > anyone know what's wrong?
  5126.  
  5127. Your're not flushing the changed resource to disk. You'll want to call
  5128. UpdateResource and then flush the disk cache. I don't remember how to do
  5129. this. I would consider sending the finder an event telling it to shut doen
  5130. as sinply cutting the power isn't nice on the filesystem.
  5131.  
  5132. -- 
  5133. Jude Charles Giampaolo         'There's not much to see actually,
  5134. jcg8@po.cwru.edu                we're inside a Chinese dragon...' 
  5135. jude@smellycat.com      http://prozac.cwru.edu/jude/JudeHome.html
  5136. Mac NFS serevr:   http://prozac.cwru.edu/jude/macnfs/Macnfsd.html
  5137.  
  5138. +++++++++++++++++++++++++++
  5139.  
  5140. >From Steve@emer.com (Steve Wilson)
  5141. Date: 23 Sep 1996 23:51:41 GMT
  5142. Organization: Emergent Behavior
  5143.  
  5144. In article <R.grayowl-2109962324500001@pm0a18.bratt.sover.net>,
  5145. grayowl@sover.net (Vinay Prabhakar) wrote:
  5146.  
  5147. > You say that you save the time and date of the intrusion attempt in a
  5148. > resource- are you calling UpdateResFile on your app's resource fork after
  5149. > doing the WriteResource? UpdateResFile forces a write to disk. 
  5150. > Normally you don't _have_ to call UpdateResFile, because the resource fork
  5151. > is updated when your application closes. (even via ExitToShell). However
  5152. > calling ShutDwnPower is pretty much like pulling the plug- you can't
  5153. > expect the data to be written out beforehand.
  5154.  
  5155. You might try calling FlushVol as well.
  5156.  
  5157. Steve Wilson
  5158. Emergent Behavior
  5159. (415) 494-6763
  5160. Steve@emer.com
  5161. http://www.emer.com
  5162.  
  5163. +++++++++++++++++++++++++++
  5164.  
  5165. >From grayowl@sover.net (Vinay Prabhakar)
  5166. Date: Sat, 21 Sep 1996 23:24:50 -0500
  5167. Organization: Gray Owl Software
  5168.  
  5169. Reposting article removed by rogue canceller.
  5170.  
  5171. In article <n-2109962036290001@news.frontiernet.net>, n@net.net wrote:
  5172.  
  5173. > I'm writing a simple password program, mainly to learn C, and everything
  5174. > works fine except for one thing. 
  5175. > The way it works is that if an incorrect password is entered more than 3
  5176. > times, the application saves the time and date of the intrusion attempt in
  5177. > a resource, and then shuts off the machine's power with ShutDwnPower();.
  5178. > While working on it, I've used ExitToShell() instead of ShutDwnPower() for
  5179. > the obvious reason that I don't want to reboot my machine each time I test
  5180. > it. The strange thing is that the built application works fine with the
  5181. > call to ExitToShell--that is, it writes the resource of the intrusion
  5182. > attempt, and then quits to the finder. When I build the application
  5183. > substituting ShutDwn Power for ExitToShell, it shuts the power down,
  5184. > allright, but it DOESN'T write to the application's resource file. Does
  5185. > anyone know what's wrong?
  5186. >             //ShutDwnPower();  //<-----uncomment this for application
  5187. >             ExitToShell();
  5188. > This works!
  5189. >             ShutDwnPower();
  5190. > This doesn't!!
  5191. > This is absolutely the ONLY thing I changed!!
  5192. > --Nicolo
  5193.  
  5194. You say that you save the time and date of the intrusion attempt in a
  5195. resource- are you calling UpdateResFile on your app's resource fork after
  5196. doing the WriteResource? UpdateResFile forces a write to disk. 
  5197.  
  5198. Normally you don't _have_ to call UpdateResFile, because the resource fork
  5199. is updated when your application closes. (even via ExitToShell). However
  5200. calling ShutDwnPower is pretty much like pulling the plug- you can't
  5201. expect the data to be written out beforehand.
  5202.  
  5203. -- 
  5204. Vinay Prabhakar
  5205. Gray Owl Software
  5206.  
  5207. ---------------------------
  5208.  
  5209. >From dogger@msus1.msus.edu
  5210. Subject: [Q] Smooth text scrolling in a Rect
  5211. Date: 24 Sep 96 10:22:08 -0500
  5212. Organization: Minnesota State University System
  5213.  
  5214. Hello,
  5215.  
  5216. For the next segment of a game I am currently working on, I need to create
  5217. a text box that scrolls text that is generated from the current battle.
  5218. This is a role playing type game and when the player/character encounters
  5219. a monster a "battle window" [a standard mac window without a title bar] opens.
  5220. In this battle window are buttons for the user to push (like "Attack"), two 
  5221. areas for pictures of the character and for the monster, and an area that I
  5222. would like to contain randomly generated commentary on the battle. Such as,
  5223. "Sir Ralph swings at the orc, hitting him."
  5224.  
  5225. What is the best way to get text to scroll in this region, preferably smoothly?
  5226. My solution, which I haven't implemented yet, involves creating an offscreen
  5227. gWorld the same size as the region in the battle window. Sending the text via
  5228. DrawString() to the gWorld then CopyBits() back to the screen region. Before I
  5229. send the text to the gWorld I would have to have to copy within the gWorld
  5230. moving the text up. (So that there room for the new line of text.)
  5231.  
  5232. *Speed is unimportant since it is a turn based game.
  5233. *Coding in c.
  5234. *Using Codewarrior 9
  5235.  
  5236. Thanks, in advance, for any and all help.
  5237.  
  5238. Fellow Mac Programmer (who's just starting),
  5239. -Tone.
  5240.  
  5241. +++++++++++++++++++++++++++
  5242.  
  5243. >From nargun@ix.netcom.com (Trevor Powell)
  5244. Date: Tue, 24 Sep 1996 11:02:31 -0800
  5245. Organization: Vulpine Software
  5246.  
  5247. In article <1996Sep24.102208.1@msus1.msus.edu>, dogger@msus1.msus.edu wrote:
  5248.  
  5249. > What is the best way to get text to scroll in this region, preferably
  5250. smoothly?
  5251. > My solution, which I haven't implemented yet, involves creating an offscreen
  5252. > gWorld the same size as the region in the battle window. Sending the text via
  5253. > DrawString() to the gWorld then CopyBits() back to the screen region. Before I
  5254. > send the text to the gWorld I would have to have to copy within the gWorld
  5255. > moving the text up. (So that there room for the new line of text.)
  5256.  
  5257. Better solution is to use an offscreen GWorld that's about one line taller
  5258. than your text window.  Draw your text into the 'bottom line' of the
  5259. offscreen GWorld, and then copybits the top part of the GWorld into your
  5260. screen region (that is, copybits the whole GWorld above the area you drew
  5261. your text into).. then (depending on whether you want the text to scroll
  5262. synchronously or asynchronously), lower the rectangle you use for your
  5263. offscreen CopyBits routine by one or two pixels, and CopyBits again.  And
  5264. again.  And again. (Either one immediately after the other, or with event
  5265. loops between them, if you want the scrolling asynchronous)  Continue
  5266. until the text is fully visible in your scrolling text area.  At this
  5267. time, move everything in the offscreen buffer up one text line
  5268. (ScrollRect() is probably the easiest way to do this, though CopyBits()
  5269. would work as well)...  repeat, when you need to enter another line of
  5270. text.
  5271.  
  5272. Hope this helps!
  5273.  
  5274. Trevor
  5275.  
  5276. ---------------------------
  5277.  
  5278. >From mbach25631@aol.com (MBach25631)
  5279. Subject: [Q] Sound Manager 3.2 docs needed
  5280. Date: 22 Sep 1996 12:03:41 -0400
  5281. Organization: America Online, Inc. (1-800-827-6364)
  5282.  
  5283. Hello all!
  5284.  
  5285. I'm looking for the SoundManager 3.2 API docs. Couldn't
  5286. find them yet. Any help greatly appreciated.
  5287.  
  5288.  
  5289. TIA
  5290. Martin Bach
  5291. MBach25631@aol.com
  5292.  
  5293. +++++++++++++++++++++++++++
  5294.  
  5295. >From "Jae Ho Chang" <jaeho@xs4all.nl>
  5296. Date: 23 Sep 96 20:26:43 +0200
  5297. Organization: XS4ALL, networking for the masses
  5298.  
  5299.  
  5300. --Cyberdog-AltBoundary-0001D04C
  5301. Content-Type: text/plain; charset=ISO-8859-1
  5302. Content-Transfer-Encoding: quoted-printable
  5303.  
  5304. >I'm looking for the SoundManager 3.2 API docs.
  5305.  
  5306. Hi,
  5307.  
  5308. I found SoundManager 3.2 in Developer CD which _should_ contain the
  5309. latest things, but they included the release note of version 3.1. No
  5310. doc for 3.2 ... :-|
  5311.  
  5312. Jae Ho Chang :-)
  5313. --
  5314. Check out the amazing note utility FinderNote at
  5315. <http://www.xs4all.nl/~jaeho/FinderNote>
  5316. eMusicas Home Page <http://www.xs4all.nl/~jaeho/>
  5317.  
  5318. - Let's think of the earth -
  5319.  
  5320.  
  5321.  
  5322. --Cyberdog-AltBoundary-0001D04C
  5323. Content-Type: multipart/mixed; boundary="Cyberdog-MixedBoundary-0001D04C"
  5324. Content-Transfer-Encoding: 7bit
  5325.  
  5326.  
  5327. --Cyberdog-MixedBoundary-0001D04C
  5328. Content-Type: text/enriched; charset=ISO-8859-1
  5329. Content-Transfer-Encoding: quoted-printable
  5330.  
  5331. <SMALLER><SMALLER><X-FONTSIZE><PARAM>9</PARAM><FONTFAMILY><PARAM>Geneva=
  5332. </PARAM>>I'm looking for the SoundManager 3.2 API
  5333. docs.</FONTFAMILY></X-FONTSIZE></SMALLER></SMALLER><SMALLER><SMALLER><X=
  5334. -FONTSIZE><PARAM>9</PARAM><FONTFAMILY><PARAM>Geneva</PARAM>
  5335.  
  5336.  
  5337. Hi,
  5338.  
  5339.  
  5340. I found SoundManager 3.2 in Developer CD which _should_ contain the
  5341. latest things, but they included the release note of version 3.1. No
  5342. doc for 3.2 ... :-|
  5343.  
  5344.  
  5345. Jae Ho Chang :-)
  5346.  
  5347. --
  5348.  
  5349. Check out the amazing note utility FinderNote at
  5350. <<</FONTFAMILY></X-FONTSIZE></SMALLER></SMALLER><COLOR><PARAM>0000,2666=
  5351. ,F0A3</PARAM><SMALLER><SMALLER><X-FONTSIZE><PARAM>9</PARAM><FONTFAMILY>=
  5352. <PARAM>Geneva</PARAM>http://www.xs4all.nl/~jaeho/FinderNote</FONTFAMILY=
  5353. ></X-FONTSIZE></SMALLER></SMALLER></COLOR><SMALLER><SMALLER><X-FONTSIZE=
  5354. ><PARAM>9</PARAM><FONTFAMILY><PARAM>Geneva</PARAM>>
  5355.  
  5356. eMusicas Home Page <<</FONTFAMILY></X-FONTSIZE></SMALLER></SMALLER><COL=
  5357. OR><PARAM>0000,2666,F0A3</PARAM><SMALLER><SMALLER><X-FONTSIZE><PARAM>9<=
  5358. /PARAM><FONTFAMILY><PARAM>Geneva</PARAM>http://www.xs4all.nl/~jaeho/</F=
  5359. ONTFAMILY></X-FONTSIZE></SMALLER></SMALLER></COLOR><SMALLER><SMALLER><X=
  5360. -FONTSIZE><PARAM>9</PARAM><FONTFAMILY><PARAM>Geneva</PARAM>>
  5361.  
  5362.  
  5363. - Let's think of the earth -
  5364.  
  5365. </FONTFAMILY></X-FONTSIZE></SMALLER></SMALLER>
  5366. --Cyberdog-MixedBoundary-0001D04C--
  5367.  
  5368. --Cyberdog-AltBoundary-0001D04C--
  5369.  
  5370.  
  5371. +++++++++++++++++++++++++++
  5372.  
  5373. >From ajlloyd@kagi.com (Adam Lloyd)
  5374. Date: Tue, 24 Sep 1996 18:44:26 +0100
  5375. Organization: the trestle table, noisily
  5376.  
  5377. Anyone noticed how Cyberdog postings look a right mess under anything other
  5378. than Cyberdog? Funny old world, really.
  5379.  
  5380. Adam.
  5381.  
  5382. PS: anyone got MkLinux DR2's X11 working on a Power100?
  5383.  
  5384. -- 
  5385. Adam Lloyd
  5386.   Red Herring Software
  5387.  
  5388.  
  5389.  
  5390. ---------------------------
  5391.  
  5392. >From helmut.kalb@uibk.ac.at (Helmut Kalb)
  5393. Subject: [Q]: System Extension Trigger
  5394. Date: 18 Sep 1996 07:46:01 GMT
  5395. Organization: University of Innsbruck, Austria
  5396.  
  5397. Hello, everybody,
  5398.  
  5399. I'm about to install a system extension, which should perform the 
  5400. following action:
  5401. Whenever the user presses the mouse button in the upper right corner 
  5402. of the screen a window should appear and disappear again when the 
  5403. button is released.
  5404. I already wrote the function which works fine as stand-alone 
  5405. application. Then I wrote a system extension which loads the 
  5406. functions code into the system heap at startup time, but now arises 
  5407. the following problem:
  5408. How can I tell the system, that this function (which shows the 
  5409. window) has to be executed whenever the user presses the button in 
  5410. the upper right corner of the screen?
  5411. Do I have to install a VBL-task?
  5412.  
  5413. Any help is appreciated. Thank You!
  5414.  
  5415. - --------------------------------------------------------
  5416. Helmut Kalb                        Tel.: ++43/512/507 4231
  5417. University of Innsbruck            Fax : ++43/512/507 2884
  5418. A-6020 Innsbruck                   OMA : helmut.kalb@uibk.ac.at
  5419. Innrain 52
  5420. Austria
  5421.  
  5422.  
  5423. +++++++++++++++++++++++++++
  5424.  
  5425. >From mh@primenet.com (Mark Hartman)
  5426. Date: 18 Sep 1996 08:42:02 -0700
  5427. Organization: Mark Hartman Computer Solutions
  5428.  
  5429. In article <51o9bp$nr7@dm2.uibk.ac.at>, helmut.kalb@uibk.ac.at (Helmut
  5430. Kalb) wrote:
  5431.  
  5432. >Hello, everybody,
  5433. >
  5434. >I'm about to install a system extension, which should perform the 
  5435. >following action:
  5436. >Whenever the user presses the mouse button in the upper right corner 
  5437. >of the screen a window should appear and disappear again when the 
  5438. >button is released.
  5439. >I already wrote the function which works fine as stand-alone 
  5440. >application. Then I wrote a system extension which loads the 
  5441. >functions code into the system heap at startup time, but now arises 
  5442. >the following problem:
  5443. >How can I tell the system, that this function (which shows the 
  5444. >window) has to be executed whenever the user presses the button in 
  5445. >the upper right corner of the screen?
  5446.  
  5447. Sounds like a job for a jGNEfilter.
  5448. ============================================================================
  5449.    Mark Hartman Computer Solutions - specializing in all things Macintosh
  5450.       C  C++   4th Dimension   Networking   System design/architecture
  5451.    tel +1(714)758.0640 -+- fax +1(714)999.5030 -+- e-mail mh@primenet.com
  5452. ============================================================================
  5453. One useless man is a disgrace; two are a law firm; three or more, a Congress
  5454.  
  5455. +++++++++++++++++++++++++++
  5456.  
  5457. >From test@netmanage.com
  5458. Date: Mon, 23 Sep 96 13:21:18 +0000
  5459. Organization: PSI Public Usenet Link
  5460.  
  5461. You'll need a JGNE filter. Check out Extension Shell by Dair Grant - it has 
  5462. working examples in CW how to do this. It's fairly easy.
  5463. Also, don't forget that since you're in the INIT, your resource file is closed. 
  5464. You'll need to store your res file's refNum in a global and when your code 
  5465. executes open your resFile and load the resource (WIND , DLOG, whatever). Then 
  5466. close your res file. 
  5467.  
  5468. HTH, Andy
  5469.  
  5470.  
  5471. >Hello, everybody,
  5472. >
  5473. >I'm about to install a system extension, which should perform the 
  5474. >following action:
  5475. >Whenever the user presses the mouse button in the upper right corner 
  5476. >of the screen a window should appear and disappear again when the 
  5477. >button is released.
  5478. >I already wrote the function which works fine as stand-alone 
  5479. >application. Then I wrote a system extension which loads the 
  5480. >functions code into the system heap at startup time, but now arises 
  5481. >the following problem:
  5482. >How can I tell the system, that this function (which shows the 
  5483. >window) has to be executed whenever the user presses the button in 
  5484. >the upper right corner of the screen?
  5485. >Do I have to install a VBL-task?
  5486. >
  5487. >Any help is appreciated. Thank You!
  5488. >
  5489. >----------------------------------------------------------
  5490. >Helmut Kalb                        Tel.: ++43/512/507 4231
  5491. >University of Innsbruck            Fax : ++43/512/507 2884
  5492. >A-6020 Innsbruck                   OMA : helmut.kalb@uibk.ac.at
  5493. >Innrain 52
  5494. >Austria
  5495. >
  5496.  
  5497.  
  5498.  
  5499. +++++++++++++++++++++++++++
  5500.  
  5501. >From test@netmanage.com
  5502. Date: Mon, 23 Sep 96 13:21:18 +0000
  5503. Organization: PSI Public Usenet Link
  5504.  
  5505. You'll need a JGNE filter. Check out Extension Shell by Dair Grant - it has 
  5506. working examples in CW how to do this. It's fairly easy.
  5507. Also, don't forget that since you're in the INIT, your resource file is closed. 
  5508. You'll need to store your res file's refNum in a global and when your code 
  5509. executes open your resFile and load the resource (WIND , DLOG, whatever). Then 
  5510. close your res file. 
  5511.  
  5512. HTH, Andy
  5513.  
  5514.  
  5515. >Hello, everybody,
  5516. >
  5517. >I'm about to install a system extension, which should perform the 
  5518. >following action:
  5519. >Whenever the user presses the mouse button in the upper right corner 
  5520. >of the screen a window should appear and disappear again when the 
  5521. >button is released.
  5522. >I already wrote the function which works fine as stand-alone 
  5523. >application. Then I wrote a system extension which loads the 
  5524. >functions code into the system heap at startup time, but now arises 
  5525. >the following problem:
  5526. >How can I tell the system, that this function (which shows the 
  5527. >window) has to be executed whenever the user presses the button in 
  5528. >the upper right corner of the screen?
  5529. >Do I have to install a VBL-task?
  5530. >
  5531. >Any help is appreciated. Thank You!
  5532. >
  5533. >----------------------------------------------------------
  5534. >Helmut Kalb                        Tel.: ++43/512/507 4231
  5535. >University of Innsbruck            Fax : ++43/512/507 2884
  5536. >A-6020 Innsbruck                   OMA : helmut.kalb@uibk.ac.at
  5537. >Innrain 52
  5538. >Austria
  5539. >
  5540.  
  5541.  
  5542.  
  5543. ---------------------------
  5544.  
  5545. >From lantos@ecf.toronto.edu (David Lantos)
  5546. Subject: help with malloc() needed
  5547. Date: Fri, 20 Sep 1996 03:05:10 GMT
  5548. Organization: University of Toronto, Engineering Computing Facility
  5549.  
  5550. It's a very short program; here's the code:
  5551.  
  5552. ____________________
  5553.  
  5554. #include <stdio.h>
  5555.  
  5556. struct node {
  5557.     char *name;
  5558.     char *id;
  5559.     int grade;
  5560.     struct node *left, *right;
  5561. };
  5562.  
  5563. main()
  5564. {
  5565.     struct node    *root;
  5566.  
  5567.     root = (struct node*)malloc( sizeof( struct node ) );
  5568. }
  5569.  
  5570. _____________________
  5571.  
  5572. that's it!  Why is it that I can't use malloc()?  When using the debugger
  5573. (I'm using Symantec 7.0), right after 'root' is declared, all of the 
  5574. members of the record seem to have memory allocated correctly.  After the
  5575. call to malloc(), all of the members have "bus error" written next to 
  5576. them.  Do I have to use some mac-specific Toolbox routine instead of 
  5577. malloc()?  Or do I not have to call malloc at all, in which case, how
  5578. would I allocate memory for the 'left' and 'right' members of 'root' ?
  5579. (when I first declare 'root', the members 'left' and 'right' are
  5580. initialized with NULL values).  Help!!!!  I've had this problem with 
  5581. malloc before; when I compile stuff with gcc at school, malloc() doesn't
  5582. give me any trouble (UNIX is the OS), but when I try to compile code that
  5583. contains malloc() on my mac, I get crashes and "bus errors".  AAHHHHH!!!!!
  5584.  
  5585.                         frustrated,
  5586.  
  5587.                         - Dave 
  5588.  
  5589.  
  5590.  
  5591.  
  5592.  
  5593. +++++++++++++++++++++++++++
  5594.  
  5595. >From quinlan@sfu.ca (Brian Quinlan)
  5596. Date: 20 Sep 1996 19:43:44 GMT
  5597. Organization: Simon Fraser University
  5598.  
  5599. All I can think of is that your not including stdlib in your program.
  5600.  
  5601.  
  5602. --
  5603.  
  5604. Brian Quinlan  "Never ask what sort of computer a guy drives. If he's a Mac
  5605. quinlan@sfu.ca  user, he'll tell you. If not, why embarrass him?" - Tom Clancy
  5606.  
  5607. +++++++++++++++++++++++++++
  5608.  
  5609. >From gregj@europa.com (Greg Jorgensen)
  5610. Date: Sun, 22 Sep 1996 12:44:06 -0800
  5611. Organization: Europa Communications, Inc, Portland Oregon USA
  5612.  
  5613. In article <Dy0GKM.Dpz@ecf.toronto.edu>, lantos@ecf.toronto.edu (David
  5614. Lantos) wrote:
  5615.  
  5616. >#include <stdio.h>
  5617. >
  5618. >struct node {
  5619. >        char *name;
  5620. >        char *id;
  5621. >        int grade;
  5622. >        struct node *left, *right;
  5623. >};
  5624. >
  5625. >main()
  5626. >{
  5627. >        struct node     *root;
  5628. >
  5629. >        root = (struct node*)malloc( sizeof( struct node ) );
  5630. >}
  5631.  
  5632. >that's it!  Why is it that I can't use malloc()?  When using the debugger
  5633. >(I'm using Symantec 7.0), right after 'root' is declared, all of the 
  5634. >members of the record seem to have memory allocated correctly.  After the
  5635. >call to malloc(), all of the members have "bus error" written next to 
  5636. >them. [...] when I try to compile code that
  5637. >contains malloc() on my mac, I get crashes and "bus errors".  AAHHHHH!!!!!
  5638.  
  5639. You need to get the correct prototype for malloc by including the correct
  5640. header file:
  5641.  
  5642. #include <stdlib.h>
  5643.  
  5644. Otherwise your code looks ok and malloc does work. If you turn the C++
  5645. compiler on you can use "new" and a little cleaner syntax for defining the
  5646. struct pointers.
  5647.  
  5648. -- 
  5649. Greg Jorgensen - Portland, Oregon, USA - gregj@europa.com
  5650.  
  5651. "I tell you, we are here on Earth to fart around, and don't let anyone tell you any different." -- Kurt Vonnegut
  5652.  
  5653. ---------------------------
  5654.  
  5655. >From geheniau@inter.nl.net (geheniau)
  5656. Subject: mac 512k ed system HELP!!!
  5657. Date: 20 Sep 1996 22:52:09 GMT
  5658. Organization: Inter.NL.net, The Internet Provider in The Netherlands.
  5659.  
  5660. I have a very old mac 512k ED.
  5661.  
  5662. I want to boot it how...
  5663.  
  5664. But i don't have a system disk (i think I need system 1.1 or 6.0)
  5665.  
  5666. Where can I get these old mac system from the net
  5667.  
  5668.  
  5669. Thanks very much for replying !!!!
  5670.  
  5671. Job
  5672.  
  5673. -- 
  5674. J.J. Geheniau
  5675. http://www.inter.nl.net/users/J.Geheniau
  5676. email:  geheniau@inter.nl.net
  5677.  
  5678. Knowledge is Power
  5679.  
  5680. +++++++++++++++++++++++++++
  5681.  
  5682. >From MikeG11@Sprynet.com (Mike Glass)
  5683. Date: Fri, 20 Sep 1996 21:30:29 -0400
  5684. Organization: MG Enterprises Ltd.
  5685.  
  5686. In article <geheniau-2109960100320001@ztm99-7.zoetermeer.nl.net>,
  5687. geheniau@inter.nl.net (geheniau) wrote:
  5688.  
  5689. =->I have a very old mac 512k ED.
  5690. =->
  5691. =->I want to boot it how...
  5692. =->
  5693. =->But i don't have a system disk (i think I need system 1.1 or 6.0)
  5694. =->
  5695. =->Where can I get these old mac system from the net
  5696. =->
  5697. =->
  5698. =->Thanks very much for replying !!!!
  5699. =->
  5700. =->Job
  5701.  
  5702. Old versions of system software are available via AOL in the INFO FROM
  5703. APPLE forum. You can get system 6.0.? there....I think. :)
  5704.  
  5705. -- 
  5706. ›hÈ ∂hÂÒ›¯m ¯ü ›hÈ ÓÒ›ÈÆÒÈ› Óß ›hÈÆÈ≠ÓÒßÓèÈ •¯¸Æ mÓÒè...
  5707.  
  5708. +++++++++++++++++++++++++++
  5709.  
  5710. >From bparker@nwdc.com (bill parker)
  5711. Date: Sat, 21 Sep 1996 23:09:54 GMT
  5712. Organization: Capitol Internet Services + MD, DC, No.VA + info@Capitol.Net
  5713.  
  5714. geheniau@inter.nl.net (geheniau) wrote:
  5715.  
  5716. >I have a very old mac 512k ED.
  5717.  
  5718. >I want to boot it how...
  5719.  
  5720. >But i don't have a system disk (i think I need system 1.1 or 6.0)
  5721.  
  5722. >Where can I get these old mac system from the net
  5723.  
  5724.  
  5725. >Thanks very much for replying !!!!
  5726.  
  5727. >Job
  5728.  
  5729. >-- 
  5730. >J.J. Geheniau
  5731. >http://www.inter.nl.net/users/J.Geheniau
  5732. >email:  geheniau@inter.nl.net
  5733.  
  5734. >Knowledge is Power
  5735.  search for mac user groups on the web initialize the disk to 400k mfs
  5736. sys 6.08 should work
  5737.  
  5738.  
  5739.  
  5740. +++++++++++++++++++++++++++
  5741.  
  5742. >From mayhem@buffnet.net (Mothermay)
  5743. Date: Sun, 22 Sep 1996 08:36:22 -0500
  5744. Organization: BuffNET
  5745.  
  5746. In article <MikeG11-2009962130310001@hd28-162.compuserve.com>,
  5747. MikeG11@Sprynet.com (Mike Glass) wrote:
  5748.  
  5749. > In article <geheniau-2109960100320001@ztm99-7.zoetermeer.nl.net>,
  5750. > geheniau@inter.nl.net (geheniau) wrote:
  5751. > =->I have a very old mac 512k ED.
  5752. > =->
  5753. > =->I want to boot it how...
  5754. > =->
  5755. > =->But i don't have a system disk (i think I need system 1.1 or 6.0)
  5756. > =->
  5757. > =->Where can I get these old mac system from the net
  5758. > =->
  5759. > =->
  5760. > =->Thanks very much for replying !!!!
  5761. > =->
  5762. > =->Job
  5763. > Old versions of system software are available via AOL in the INFO FROM
  5764. > APPLE forum. You can get system 6.0.? there....I think. :)
  5765. > -- 
  5766. > ›hÈ ∂hÂÒ›¯m ¯ü ›hÈ ÓÒ›ÈÆÒÈ› Óß ›hÈÆÈ≠ÓÒßÓèÈ •¯¸Æ mÓÒè...
  5767.  
  5768.  
  5769. I've seen SYS 5.0 out there at some of the university based shareware
  5770. sites, nothing older. Sys 3.0 is best suited for the 512k (Fat) Mac. The
  5771. only place I've seen it is for sale ($15.00) at Sun Remarketing.
  5772.  
  5773. Good luck,
  5774. Craig
  5775.  
  5776. -- 
  5777. "Improvement makes strait roads; but the crooked roads without Improvement are the roads of genius."  --Blake
  5778.  
  5779. Mothermay
  5780.  
  5781. +++++++++++++++++++++++++++
  5782.  
  5783. >From cjs@vaxxine.com (CJ Shortland)
  5784. Date: 22 Sep 1996 23:39:06 GMT
  5785. Organization: Vaxxine Public Internet Access 
  5786.  
  5787. In article <mayhem-2209960836230001@dppp33.buffnet.net>,
  5788. mayhem@buffnet.net (Mothermay) wrote:
  5789.  
  5790. > In article <MikeG11-2009962130310001@hd28-162.compuserve.com>,
  5791. > MikeG11@Sprynet.com (Mike Glass) wrote:
  5792. > > In article <geheniau-2109960100320001@ztm99-7.zoetermeer.nl.net>,
  5793. > > geheniau@inter.nl.net (geheniau) wrote:
  5794. > > 
  5795. > > =->I have a very old mac 512k ED.
  5796. > > =->
  5797. > > =->I want to boot it how...
  5798. > > =->
  5799. > > =->But i don't have a system disk (i think I need system 1.1 or 6.0)
  5800. > > =->
  5801. > > =->Where can I get these old mac system from the net
  5802. > > =->
  5803. > > =->
  5804. > > =->Thanks very much for replying !!!!
  5805. > > =->
  5806. > > =->Job
  5807. > > 
  5808. > > Old versions of system software are available via AOL in the INFO FROM
  5809. > > APPLE forum. You can get system 6.0.? there....I think. :)
  5810. > > 
  5811. > > -- 
  5812. > > ›hÈ ∂hÂÒ›¯m ¯ü ›hÈ ÓÒ›ÈÆÒÈ› Óß ›hÈÆÈ≠ÓÒßÓèÈ •¯¸Æ mÓÒè...
  5813. > I've seen SYS 5.0 out there at some of the university based shareware
  5814. > sites, nothing older. Sys 3.0 is best suited for the 512k (Fat) Mac. The
  5815. > only place I've seen it is for sale ($15.00) at Sun Remarketing.
  5816. > Good luck,
  5817. > Craig
  5818. > -- 
  5819. > "Improvement makes strait roads; but the crooked roads without
  5820. Improvement are the roads of genius."  --Blake
  5821. > Mothermay
  5822. I needed to get the startup disks for a 512K machine for a friend at work.
  5823. I called Apple Canada and they said they have all the startup disks for
  5824. all the old machines and would mail me one for free!! Can't beat that.
  5825.  
  5826. -- 
  5827. CJ Shortland
  5828. cjs@vaxxine.com
  5829.  
  5830.  
  5831. ---------------------------
  5832.  
  5833. End of C.S.M.P. Digest
  5834. **********************
  5835.